auto-detection of subsystem type has been abandoned and rc_sys="" should be set in rc.conf if the sys is different from a normal host. Anyway `rc -S` still output a string for some configurations, at your discretion you can add lxc to the list since there is now a way to discover it (cannot test, not using lxc here); `grep 'container=lxc' /proc/1/environ` From a conversation on google+ with Lennart Poettering Lennart Poettering - Francesco, how does openrc detect lxc? Ieri alle ore 23:40 Francesco Riosa - +Lennart Poettering They were not able to detect it. That's one of the reason they switched to explicit rc.conf setting. Better explained @ http://www.gentoo.org/doc/en/openrc-migration.xml (around code listing 2.15) legacy detect code can be accessed by `/sbin/rc -S` which print out the "subsystem type" if discovered 01:25 - Modifica Lennart Poettering - there's now a way to detect lxc: an env var is set which you can read from /proc/1/environ. 01:53 Lennart Poettering - "container=lxc" is the env var
Diego: IIRC you were using LXC, can you comment on this autodetect test please?
LGTM
Created attachment 287947 [details] /tmp/auto-lxc.patch Based on the description in this bug, this patch should detect lxc. Apply the patch, then from inside a lxc container, with rc_sys not set, run rc -S and verify that lxc is returned.
This is added in commit f46626d.