Re: [OpenWrt-Devel] RFC: procd patch to run as container/lxd

2019-03-20 Thread Jo-Philipp Wich
Hi,

> procd causes trouble when running in a LXD container, however would be
> nice to use OpenWrt as small VMs.
> 
> There are patches [0] "fixing" the issue, but they're not really
> upstream ready (for obvious reasons).
> 
> Would it be possible to add a detection to procd if it's running in an
> "unprivileged" container and behave accordingly?

Ideally a fix would be added that allows normal operation in both
container and non-container setups.

For the cases where there is really a need to behave differently, maybe
a keyword in the kernel command line (/proc/cmdline) would be acceptable
to make procd behave differently.

~ Jo



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] RFC: procd patch to run as container/lxd

2019-03-20 Thread Paul Spooren
Hi,

procd causes trouble when running in a LXD container, however would be
nice to use OpenWrt as small VMs.

There are patches [0] "fixing" the issue, but they're not really
upstream ready (for obvious reasons).

Would it be possible to add a detection to procd if it's running in an
"unprivileged" container and behave accordingly?

Thanks for all further thoughts!

Sunshine,
Paul

[0]: https://github.com/mikma/lxd-openwrt/tree/master/patches/procd-master



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel