From 47c6635992e21270841c80ff62ff3c8eed38d5df Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 22 Feb 2013 18:26:30 -0500 Subject: dracut: add anaconda-pre-shutdown.sh to fix eject (#809920) So it turns out that having the device that contains the runtime image mounted *underneath* the runtime image means we have a mount loop, e.g.: The DVD can't be unmounted because it holds the image for / / can't be unmounted because the DVD is mounted underneath it To fix this, we move the repo mount(s) back out from under the runtime image during dracut's pre-shutdown hook (new in dracut 024-25). --- dracut/module-setup.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'dracut/module-setup.sh') diff --git a/dracut/module-setup.sh b/dracut/module-setup.sh index d196963c5..9d21bcffd 100755 --- a/dracut/module-setup.sh +++ b/dracut/module-setup.sh @@ -34,6 +34,7 @@ install() { inst_hook pre-pivot 50 "$moddir/anaconda-copy-ks.sh" inst_hook pre-pivot 50 "$moddir/anaconda-copy-cmdline.sh" inst_hook pre-pivot 99 "$moddir/save-initramfs.sh" + inst_hook pre-shutdown 50 "$moddir/anaconda-pre-shutdown.sh" # kickstart parsing, WOOOO inst_hook initqueue/online 10 "$moddir/fetch-kickstart-net.sh" inst "$moddir/fetch-kickstart-disk" "/sbin/fetch-kickstart-disk" -- cgit