diff options
author | Thomas Backlund <tmb@mageia.org> | 2013-10-19 19:27:20 +0100 |
---|---|---|
committer | Jybz <j.biernacki@free.fr> | 2024-04-20 21:21:03 +0200 |
commit | 1ed60d25874839c7cc477210754ffd752c2cd797 (patch) | |
tree | 69bc601c772d9ed7a8dd9586f80b51beeef8d508 /modules.d/90mgalive/module-setup.sh | |
parent | fcfb11e19a88ca8c6ae09bb8c4cc4105c70107dd (diff) | |
download | mageia-dracut-conf-1ed60d25874839c7cc477210754ffd752c2cd797.tar mageia-dracut-conf-1ed60d25874839c7cc477210754ffd752c2cd797.tar.gz mageia-dracut-conf-1ed60d25874839c7cc477210754ffd752c2cd797.tar.bz2 mageia-dracut-conf-1ed60d25874839c7cc477210754ffd752c2cd797.tar.xz mageia-dracut-conf-1ed60d25874839c7cc477210754ffd752c2cd797.zip |
Updated to eject CD and pause on shutdown.
Signed-off-by: Martin Whitaker <mageia@martin-whitaker.me.uk>
- origin:
https://svnweb.mageia.org/packages/cauldron/dracut/current/SOURCES/0511-mgalive-A-module-to-mount-Mageia-Live-media.patch?r1=1231609&r2=1326566
- enable pivot back to dracut on shutdown (mga#22516)
o see also upstream issue #481
- fix shutdown umount retry loop (upstream issue #483)
- mgalive: ensure overlay filesystems are cleanly unmounted on shutdown
- mgalive: eject optical media and pause on shutdown
Diffstat (limited to 'modules.d/90mgalive/module-setup.sh')
-rwxr-xr-x | modules.d/90mgalive/module-setup.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules.d/90mgalive/module-setup.sh b/modules.d/90mgalive/module-setup.sh index 99be401..b8f3f8d 100755 --- a/modules.d/90mgalive/module-setup.sh +++ b/modules.d/90mgalive/module-setup.sh @@ -15,11 +15,12 @@ installkernel() { } install() { - inst_multiple umount dmsetup blkid dd losetup grep blockdev - inst_multiple -o eject + inst_multiple blkid clear eject grep losetup umount inst_hook cmdline 30 "$moddir/mgalive-parse.sh" inst_hook pre-udev 30 "$moddir/mgalive-genrules.sh" + inst_hook pre-shutdown 99 "$moddir/mgalive-quit-plymouth.sh" + inst_hook shutdown 99 "$moddir/mgalive-shutdown.sh" inst "$moddir/mgalive-root.sh" "/sbin/mgalive-root" # should probably just be generally included inst_rules 60-cdrom_id.rules |