From e4ec9f286377cf335077f2d1cd3261b974523397 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 23 Sep 2004 18:28:10 +0000 Subject: move relabel until after all FSes are checked --- rc.d/rc.sysinit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index b2599bb8..2a816e94 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -422,11 +422,6 @@ if [ -z "$fastboot" -a "$READONLY" != "yes" -a "X$ROOTFSTYPE" != "Xnfs" -a "X$RO _RUN_QUOTACHECK=1 fi fi -# -# Check to see if SELinux requires a relabel -# -[ -n "$SELINUX" ] && [ -f /.autorelabel ] && relabel_selinux - # Unmount the initrd, if necessary if LC_ALL=C fgrep -q /initrd /proc/mounts && ! LC_ALL=C fgrep -q /initrd/loopfs /proc/mounts ; then if [ -e /initrd/dev/.devfsd ]; then @@ -712,6 +707,11 @@ if [ -x /sbin/quotaon ]; then action $"Enabling local filesystem quotas: " /sbin/quotaon -aug fi +# +# Check to see if SELinux requires a relabel +# +[ -n "$SELINUX" ] && [ -f /.autorelabel ] && relabel_selinux + # Initialize pseudo-random number generator if [ -f "/var/lib/random-seed" ]; then cat /var/lib/random-seed > /dev/urandom -- cgit v1.2.1