diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-18 22:45:58 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-03-18 22:45:58 +0100 |
commit | 7a9fe7af17c77db96ea51db95ee87a6b34fc330c (patch) | |
tree | c1d2d9d603329d06ffd216d0d3a8d5d0d89d804f /backend/modules/init | |
parent | 6e1a57040af87449ae28469adcceead68f291d89 (diff) | |
download | acritoxinstaller-7a9fe7af17c77db96ea51db95ee87a6b34fc330c.zip acritoxinstaller-7a9fe7af17c77db96ea51db95ee87a6b34fc330c.tar.gz |
loop-device and fstab fixes
Diffstat (limited to 'backend/modules/init')
-rw-r--r-- | backend/modules/init | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/modules/init b/backend/modules/init index f7a7628..cfe37e1 100644 --- a/backend/modules/init +++ b/backend/modules/init @@ -5,7 +5,10 @@ function init_installer() [ -f /etc/default/distro ] && . /etc/default/distro export FLL_DISTRO_MODE FLL_DISTRO_NAME FLL_LIVE_USER mkdir -p /live/filesystem - [ -d /live/filesystem/usr ] || mount -o ro /dev/loop0 /live/filesystem + 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" } |