Re: [OpenWrt-Devel] [PATCH v2] procd: detect lxc container and behave accordingly

2019-05-05 Thread Hans Dedecker
On Sat, May 4, 2019 at 10:30 PM Paul Spooren wrote: > > meaning to not mount some specific parts witch cause trouble. > > The patch is based on previous work of @mikma to combine OpenWrt with > lxd[0]. This patch however adds a detection copied from *virt-what* to > check /proc/1/environment for

[OpenWrt-Devel] [PATCH v2] procd: detect lxc container and behave accordingly

2019-05-04 Thread Paul Spooren
meaning to not mount some specific parts witch cause trouble. The patch is based on previous work of @mikma to combine OpenWrt with lxd[0]. This patch however adds a detection copied from *virt-what* to check /proc/1/environment for the string "container". Thanks to @dangowrt for the cleanup.