From 51917bc60573b85bc354e573a3d22e6dde2cec35 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 23 Mar 2016 12:13:03 +0000
Subject: [PATCH] appliance: init: Mount selinuxfs along with other special
filesystems.
Move this earlier.
(cherry picked from commit 705b721b4224f43149e52d8741d2aa5c4a67b735)
---
appliance/init | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/appliance/init b/appliance/init
index 55b1a35..6793d57 100755
--- a/appliance/init
+++ b/appliance/init
@@ -74,6 +74,10 @@ fi
# 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).
@@ -97,10 +101,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
--
1.8.3.1