aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-19 03:04:12 +0100
committerBill Nottingham <notting@redhat.com>2010-11-21 23:00:59 -0500
commit5d5f11e49ac230d5d92ccc28512bcf387c22286c (patch)
treed7fd1ffadf5fa0cbfc76090f87e26030a8f53e19
parent3d74cc03f6a50a649d638bcd395b62b2e15a5c5a (diff)
downloadinitscripts-5d5f11e49ac230d5d92ccc28512bcf387c22286c.tar
initscripts-5d5f11e49ac230d5d92ccc28512bcf387c22286c.tar.gz
initscripts-5d5f11e49ac230d5d92ccc28512bcf387c22286c.tar.bz2
initscripts-5d5f11e49ac230d5d92ccc28512bcf387c22286c.tar.xz
initscripts-5d5f11e49ac230d5d92ccc28512bcf387c22286c.zip
autorelabel: use systemd internal reboot logic, which is more robust and includes automatic unmounting
-rwxr-xr-xsystemd/fedora-autorelabel6
1 files changed, 1 insertions, 5 deletions
diff --git a/systemd/fedora-autorelabel b/systemd/fedora-autorelabel
index 6148cd26..2a5cc491 100755
--- a/systemd/fedora-autorelabel
+++ b/systemd/fedora-autorelabel
@@ -51,11 +51,7 @@ relabel_selinux() {
/sbin/fixfiles -F restore > /dev/null 2>&1
fi
rm -f /.autorelabel
- echo $"Unmounting file systems"
- umount -a
- mount -n -o remount,ro /
- echo $"Automatic reboot in progress."
- reboot -f
+ systemctl --force reboot
}
[ -z "${cmdline}" ] && cmdline=$(cat /proc/cmdline)