[Libguestfs] [PATCH v4 3/6] appliance: init: Mount selinuxfs along with other special filesystems.

Richard W.M. Jones rjones at redhat.com
Wed Mar 23 13:35:41 UTC 2016


Move this earlier.
---
 appliance/init | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/appliance/init b/appliance/init
index c4cf964..d5f7404 100755
--- a/appliance/init
+++ b/appliance/init
@@ -72,6 +72,10 @@ ln -s /proc/mounts /etc/mtab
 # devtmpfs is required since udev 176
 mount -t devtmpfs /dev /dev
 
+if [[ $cmdline == *selinux=1* ]]; then
+  mount -t selinuxfs none /sys/fs/selinux
+fi
+
 # Static nodes must happen before udev is started.
 
 # Set up kmod static-nodes (RHBZ#1011907).
@@ -95,10 +99,6 @@ $UDEVD --daemon #--debug
 udevadm trigger
 udevadm settle --timeout=600
 
-if [[ $cmdline == *selinux=1* ]]; then
-  mount -t selinuxfs none /sys/fs/selinux
-fi
-
 # Disk optimizations.
 # Increase the SCSI timeout so we can read remote images.
 shopt -s nullglob
-- 
2.7.4




More information about the Libguestfs mailing list