When running Gentoo on kernels which provide initrds that premount /proc and /sys (like Debian and Redhat kernels do), the boot process fails as mount exits with non-zero status due to the filesystems already being mounted. Right now in ApplianceKit, we are patching /sbin/rc to drop the 'try' keyword before those mount commands, so that the boot process may continue correctly. Please add checks to ensure that that the filesystems are not re-mounted. Checking for presence of /proc/mounts and then grepping it for /sys should do just fine here. Alternatively, you could check for /sys/kernel, that's not going to go away any time soon. Reproducible: Always Steps to Reproduce:
http://sources.gentoo.org/baselayout/branches/baselayout-1_12/sbin/rc?r1=3144&r2=3145