From 5d5f11e49ac230d5d92ccc28512bcf387c22286c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Nov 2010 03:04:12 +0100 Subject: autorelabel: use systemd internal reboot logic, which is more robust and includes automatic unmounting --- systemd/fedora-autorelabel | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'systemd') 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) -- cgit v1.2.1