summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-26 11:35:39 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2019-01-26 13:09:04 +0000
commit499b3393612fae11dde411b656da92d3fbead90e (patch)
treef2d8fb288714eb99eae79a260e362ca2492fae6d
parentc250a912fbea001a3f47fbd4463e482c830ad421 (diff)
downloaddraklive-install-499b3393612fae11dde411b656da92d3fbead90e.tar
draklive-install-499b3393612fae11dde411b656da92d3fbead90e.tar.gz
draklive-install-499b3393612fae11dde411b656da92d3fbead90e.tar.bz2
draklive-install-499b3393612fae11dde411b656da92d3fbead90e.tar.xz
draklive-install-499b3393612fae11dde411b656da92d3fbead90e.zip
Signal to the dracut shutdown script that the Live medium should be ejected.
-rw-r--r--NEWS2
-rwxr-xr-xdraklive-install2
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 721333c..e2bb2f7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- signal to the dracut shutdown script that the Live medium should be ejected
+
2.19
- remove unused locales and drivers from source if not persistent
(this significantly reduces the time taken to 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