summaryrefslogtreecommitdiffstats
path: root/dracut/module-setup.sh
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2013-02-22 18:26:30 -0500
committerWill Woods <wwoods@redhat.com>2013-02-26 12:32:50 -0500
commit47c6635992e21270841c80ff62ff3c8eed38d5df (patch)
tree90087378b721e10a88676ff395cfef952ece1dba /dracut/module-setup.sh
parentd42bd03f491955bb124f9fc87a4effce62abbdb5 (diff)
downloadanaconda-47c6635992e21270841c80ff62ff3c8eed38d5df.tar.gz
anaconda-47c6635992e21270841c80ff62ff3c8eed38d5df.tar.xz
anaconda-47c6635992e21270841c80ff62ff3c8eed38d5df.zip
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).
Diffstat (limited to 'dracut/module-setup.sh')
-rwxr-xr-xdracut/module-setup.sh1
1 files changed, 1 insertions, 0 deletions
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"