diff options
author | Thomas Backlund <tmb@mageia.org> | 2014-01-04 20:39:28 +0100 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2014-01-04 20:39:28 +0100 |
commit | b67df736b3443c0b0841c8da7f15ad5643ce8ca3 (patch) | |
tree | 07d37215c77e66608074c502e7683b317c19abd5 /files/90mgalive | |
parent | d090a8b3f9982f928435fdb444ddb7a870349490 (diff) | |
download | draklive-config-b67df736b3443c0b0841c8da7f15ad5643ce8ca3.tar draklive-config-b67df736b3443c0b0841c8da7f15ad5643ce8ca3.tar.gz draklive-config-b67df736b3443c0b0841c8da7f15ad5643ce8ca3.tar.bz2 draklive-config-b67df736b3443c0b0841c8da7f15ad5643ce8ca3.tar.xz draklive-config-b67df736b3443c0b0841c8da7f15ad5643ce8ca3.zip |
add mga3 final build configs
Diffstat (limited to 'files/90mgalive')
-rwxr-xr-x | files/90mgalive/mgalive-root.sh | 13 | ||||
-rwxr-xr-x | files/90mgalive/module-setup.sh | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/files/90mgalive/mgalive-root.sh b/files/90mgalive/mgalive-root.sh index c03935e..2837cd0 100755 --- a/files/90mgalive/mgalive-root.sh +++ b/files/90mgalive/mgalive-root.sh @@ -14,20 +14,27 @@ 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 livecd -mount -n -t iso9660 -o ro $realdev /live/media +# 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 unionfs -o dirs=/live/memory=rw:/live/distrib=ro unionfs /live/union +mount -n -t overlayfs -o lowerdir=/live/distrib,upperdir=/live/memory overlayfs /live/union ln -s /live/union /dev/root diff --git a/files/90mgalive/module-setup.sh b/files/90mgalive/module-setup.sh index 19eb0a6..f18e81a 100755 --- a/files/90mgalive/module-setup.sh +++ b/files/90mgalive/module-setup.sh @@ -11,7 +11,7 @@ depends() { } installkernel() { - instmods squashfs loop unionfs + instmods squashfs loop overlayfs } install() { |