From 499b3393612fae11dde411b656da92d3fbead90e Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 26 Jan 2019 11:35:39 +0000 Subject: Signal to the dracut shutdown script that the Live medium should be ejected. --- draklive-install | 2 ++ 1 file changed, 2 insertions(+) (limited to 'draklive-install') diff --git a/draklive-install b/draklive-install index 59e39be..7d36666 100755 --- a/draklive-install +++ b/draklive-install @@ -386,6 +386,8 @@ sub finish_installation { my ($fstab) = @_; #- remove the extra authorisation draklive added run_program::rooted($::prefix, 'sed', '-i', '/for draklive-install/d', '/etc/pam.d/polkit-1'); + #- signal to the dracut shutdown script that the Live medium should be ejected + system('touch', '/run/mgalive/installed'); sync_logs(); #- cleanly umount here, it will avoid fs journals to be corrupted after a hackish reboot #- but leave swap space, to avoid out-of-memory error on machines with little memory -- cgit v1.2.1