summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfiles/90mgalive/mgalive-root.sh4
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