On 06.03.2013 15:13, Sven Vermeulen wrote:
If dracut doesn't use the fstab options then you'll need to find where
it gets mounted and update that. Perhaps creating an additional dracut
module to remount with the correct options works as well and is more
manageable in the longer term?
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Hi,
I've actually tried that. The problem is that SELinux-enabled mount
(which gets pulled into the initramfs from the system) will filter out
SELinux-related mount options (like rootcontext) if it finds that
SELinux is not running (it will call is_selinux_running() from libselinux).
One of the checks it makes is for a mounted /selinux filesystem, but
mounting it alone has no impact. I'll have to dig further.
As for remounting I tried to remount /run by adding the rootcontext
option, but mount fails with the error "mount: /run not mounted or bad
option". I have a suspicion that you cannot add/change the rootcontext
mount option during a remount. This is actually what OpenRC is trying to
do in /etc/init.d/root, but fails with the same error.
Regards
Chris