summaryrefslogtreecommitdiff
path: root/backend/modules/init
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-05-09 20:43:49 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-05-09 20:43:49 +0200
commit0d962ca98690b5d1b5da945f9817a6d93d289252 (patch)
treeb60a9efcebcc52e194c16c3db9ff65c31e4598ef /backend/modules/init
parent683065d12a92fa1b722a3fa42ca6a27e15672a0d (diff)
downloadacritoxinstaller-0d962ca98690b5d1b5da945f9817a6d93d289252.zip
acritoxinstaller-0d962ca98690b5d1b5da945f9817a6d93d289252.tar.gz
copy gfxoverlay to hd
Diffstat (limited to 'backend/modules/init')
-rw-r--r--backend/modules/init18
1 files changed, 17 insertions, 1 deletions
diff --git a/backend/modules/init b/backend/modules/init
index cfe37e1..c93cb27 100644
--- a/backend/modules/init
+++ b/backend/modules/init
@@ -5,8 +5,24 @@ function init_installer()
[ -f /etc/default/distro ] && . /etc/default/distro
export FLL_DISTRO_MODE FLL_DISTRO_NAME FLL_LIVE_USER
mkdir -p /live/filesystem
+ LOOPDEV="$(losetup --all | awk -F: '/\/live\/image\/live/&&/filesystem/{print $1}')"
+ if [ -e /live/gfxoverlay.active ]; then
+ mkdir -p /live/filesystem.main
+ gfx="$(cat /live/gfxoverlay.active)"
+ bit=32
+ [ "$(uname -m)" = "x86_64" ] && bit=64
+ if [ ! -d /live/filesystem.main/usr ]; then
+ [ "$LOOPDEV" ] && mount -o ro "$LOOPDEV" /live/filesystem.main
+ for dir in /live/gfxoverlay/overlay$bit-$gfx /live/gfxoverlay/$gfx /live/gfxoverlay
+ do
+ if [ -d $dir/lib ]; then
+ mount -t aufs -o br:$dir:/live/filesystem.main none /live/filesystem
+ break
+ fi
+ done
+ fi
+ fi
if [ ! -d /live/filesystem/usr ]; then
- LOOPDEV="$(losetup --all | awk -F: '/\/live\/image\/live/&&/filesystem/{print $1}')"
[ "$LOOPDEV" ] && mount -o ro "$LOOPDEV" /live/filesystem
fi
cfg_set hostname "${FLL_DISTRO_NAME}Box"