summaryrefslogtreecommitdiffstats
path: root/files/90mgalive/mgalive-root.sh
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-01-04 22:58:03 +0100
committerThomas Backlund <tmb@mageia.org>2014-01-04 22:58:03 +0100
commit00c9096fdf5b108601be559691b17dd79d3a9022 (patch)
treedbffdf4477b78817e82969506245ee4d78c3d18d /files/90mgalive/mgalive-root.sh
parent8632d90593f763d4d430918d470a4dd3c36a060c (diff)
downloaddraklive-config-00c9096fdf5b108601be559691b17dd79d3a9022.tar
draklive-config-00c9096fdf5b108601be559691b17dd79d3a9022.tar.gz
draklive-config-00c9096fdf5b108601be559691b17dd79d3a9022.tar.bz2
draklive-config-00c9096fdf5b108601be559691b17dd79d3a9022.tar.xz
draklive-config-00c9096fdf5b108601be559691b17dd79d3a9022.zip
mgalive module is in dracut package, draklive-install is fixed
Diffstat (limited to 'files/90mgalive/mgalive-root.sh')
-rwxr-xr-xfiles/90mgalive/mgalive-root.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/files/90mgalive/mgalive-root.sh b/files/90mgalive/mgalive-root.sh
deleted file mode 100755
index 2837cd0..0000000
--- a/files/90mgalive/mgalive-root.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-. /lib/dracut-lib.sh
-
-[ -f /tmp/root.info ] && . /tmp/root.info
-
-PATH=/usr/sbin:/usr/bin:/sbin:/bin
-
-[ -z "$1" ] && exit 1
-livedev="$1"
-
-# create live tree
-mkdir -m 0755 -p /live/media
-mkdir -m 0755 -p /live/distrib
-mkdir -m 0755 -p /live/memory
-mkdir -m 0755 -p /live/union
-mkdir -m 0755 -p /run/mgalive/sqfs
-
-# fix udev isohybrid LABEL issues (mga #3334)
-# by reading the device we get, stripping away partition number,
-# and mount the resulting device
-realdev=$(echo $livedev |sed 's,\(/dev/sd[a-z]\)1,\1,g')
-
-# mount the live media
-getargbool 0 UEFI && liveuefi="yes"
-if [ -n "$liveuefi" ]; then
- mount -n -t vfat -o ro $livedev /live/media
-else
- mount -n -t iso9660 -o ro $realdev /live/media
-fi
-
-LOOPDEV=$( losetup -f )
-losetup -r $LOOPDEV /live/media/loopbacks/distrib-lzma.sqfs
-mount -n -t squashfs -o ro $LOOPDEV /live/distrib
-mount -n -t squashfs -o ro $LOOPDEV /run/mgalive/sqfs
-mount -n -t tmpfs -o mode=755 /live/memory /live/memory
-mount -n -t overlayfs -o lowerdir=/live/distrib,upperdir=/live/memory overlayfs /live/union
-
-ln -s /live/union /dev/root
-
-printf '/bin/mount --rbind /live/union %s\n' "$NEWROOT" > $hookdir/mount/01-$$-live.sh
-
-need_shutdown
-
-exit 0