Blame SOURCES/0039-appliance-init-Mount-selinuxfs-along-with-other-spec.patch

e76f14
From 51917bc60573b85bc354e573a3d22e6dde2cec35 Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Wed, 23 Mar 2016 12:13:03 +0000
e76f14
Subject: [PATCH] appliance: init: Mount selinuxfs along with other special
e76f14
 filesystems.
e76f14
e76f14
Move this earlier.
e76f14
e76f14
(cherry picked from commit 705b721b4224f43149e52d8741d2aa5c4a67b735)
e76f14
---
e76f14
 appliance/init | 8 ++++----
e76f14
 1 file changed, 4 insertions(+), 4 deletions(-)
e76f14
e76f14
diff --git a/appliance/init b/appliance/init
e76f14
index 55b1a35..6793d57 100755
e76f14
--- a/appliance/init
e76f14
+++ b/appliance/init
e76f14
@@ -74,6 +74,10 @@ fi
e76f14
 # devtmpfs is required since udev 176
e76f14
 mount -t devtmpfs /dev /dev
e76f14
 
e76f14
+if [[ $cmdline == *selinux=1* ]]; then
e76f14
+  mount -t selinuxfs none /sys/fs/selinux
e76f14
+fi
e76f14
+
e76f14
 # Static nodes must happen before udev is started.
e76f14
 
e76f14
 # Set up kmod static-nodes (RHBZ#1011907).
e76f14
@@ -97,10 +101,6 @@ $UDEVD --daemon #--debug
e76f14
 udevadm trigger
e76f14
 udevadm settle --timeout=600
e76f14
 
e76f14
-if [[ $cmdline == *selinux=1* ]]; then
e76f14
-  mount -t selinuxfs none /sys/fs/selinux
e76f14
-fi
e76f14
-
e76f14
 # Disk optimizations.
e76f14
 # Increase the SCSI timeout so we can read remote images.
e76f14
 shopt -s nullglob
e76f14
-- 
aa0300
2.7.4
e76f14