diff options
author | Thomas Backlund <tmb@mageia.org> | 2012-04-07 23:38:48 +0000 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2012-04-07 23:38:48 +0000 |
commit | 1b37d9ea5d565785e14fc7605076fd6c5387137f (patch) | |
tree | 64be8b8adf939b7a0b2208bb53b9bfab3fd8437e | |
parent | 3aff1c9d5b67a604e8e262095ebc7a4f754925d8 (diff) | |
download | draklive-config-1b37d9ea5d565785e14fc7605076fd6c5387137f.tar draklive-config-1b37d9ea5d565785e14fc7605076fd6c5387137f.tar.gz draklive-config-1b37d9ea5d565785e14fc7605076fd6c5387137f.tar.bz2 draklive-config-1b37d9ea5d565785e14fc7605076fd6c5387137f.tar.xz draklive-config-1b37d9ea5d565785e14fc7605076fd6c5387137f.zip |
fix hang on shutdown
-rwxr-xr-x | files/90mgalive/mgalive-root.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/files/90mgalive/mgalive-root.sh b/files/90mgalive/mgalive-root.sh index 0d05e97..96f1fb1 100755 --- a/files/90mgalive/mgalive-root.sh +++ b/files/90mgalive/mgalive-root.sh @@ -1,5 +1,7 @@ #!/bin/sh +. /lib/dracut-lib.sh + [ -f /tmp/root.info ] && . /tmp/root.info PATH=/usr/sbin:/usr/bin:/sbin:/bin @@ -24,7 +26,7 @@ mount -n -t unionfs -o dirs=/live/memory=rw:/live/distrib=ro unionfs /live/union ln -s /live/union /dev/root -printf '/bin/mount --move /live/union %s\n' "$NEWROOT" > $hookdir/mount/01-$$-live.sh +printf '/bin/mount --rbind /live/union %s\n' "$NEWROOT" > $hookdir/mount/01-$$-live.sh need_shutdown |