diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-19 03:04:12 +0100 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-11-21 23:00:59 -0500 |
commit | 5d5f11e49ac230d5d92ccc28512bcf387c22286c (patch) | |
tree | d7fd1ffadf5fa0cbfc76090f87e26030a8f53e19 /systemd/fedora-autorelabel | |
parent | 3d74cc03f6a50a649d638bcd395b62b2e15a5c5a (diff) | |
download | initscripts-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
Diffstat (limited to 'systemd/fedora-autorelabel')
-rwxr-xr-x | systemd/fedora-autorelabel | 6 |
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) |