aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-05-29 09:06:36 -0400
committerBill Nottingham <notting@redhat.com>2008-05-29 09:06:36 -0400
commit60ae2cf1f6494b3036f1126f88f71f0ab77e5e74 (patch)
tree82212693af15dcc597763ebeef54a33b498dd6cd /rc.d/rc.sysinit
parent6e853f11b400a21649df91cce8d4457dca881342 (diff)
downloadinitscripts-60ae2cf1f6494b3036f1126f88f71f0ab77e5e74.tar
initscripts-60ae2cf1f6494b3036f1126f88f71f0ab77e5e74.tar.gz
initscripts-60ae2cf1f6494b3036f1126f88f71f0ab77e5e74.tar.bz2
initscripts-60ae2cf1f6494b3036f1126f88f71f0ab77e5e74.tar.xz
initscripts-60ae2cf1f6494b3036f1126f88f71f0ab77e5e74.zip
Fix typo, and don't restorecon on swap, etc. partitions (#448886)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 61eb18d8..432ad434 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -608,7 +608,7 @@ fi
# If relabeling, relabel mount points.
if [ -n "$SELINUX_STATE" -a "$READONLY" != "yes" ]; then
if [ -f /.autorelabel ] || strstr "$cmdline" autorelabel ; then
- retstorecon $(awk '!/^#/ && $4 !~ /noauto/ { print $2 }' /etc/fstab) >/dev/null 2>&1
+ restorecon $(awk '!/^#/ && $4 !~ /noauto/ && $2 ~ /^\// { print $2 }' /etc/fstab) >/dev/null 2>&1
fi
fi