diff options
author | Bill Nottingham <notting@redhat.com> | 2008-05-29 09:06:36 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-05-29 09:06:36 -0400 |
commit | 60ae2cf1f6494b3036f1126f88f71f0ab77e5e74 (patch) | |
tree | 82212693af15dcc597763ebeef54a33b498dd6cd /rc.d/rc.sysinit | |
parent | 6e853f11b400a21649df91cce8d4457dca881342 (diff) | |
download | initscripts-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-x | rc.d/rc.sysinit | 2 |
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 |