diff options
author | Will Woods <wwoods@redhat.com> | 2013-02-22 18:26:30 -0500 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2013-02-26 12:32:50 -0500 |
commit | 47c6635992e21270841c80ff62ff3c8eed38d5df (patch) | |
tree | 90087378b721e10a88676ff395cfef952ece1dba /dracut/module-setup.sh | |
parent | d42bd03f491955bb124f9fc87a4effce62abbdb5 (diff) | |
download | anaconda-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-x | dracut/module-setup.sh | 1 |
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" |