diff options
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" } |