summaryrefslogtreecommitdiff
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/init10
-rw-r--r--initramfs/initramfs.lst1
2 files changed, 6 insertions, 5 deletions
diff --git a/initramfs/init b/initramfs/init
index c81dd42..0510f71 100755
--- a/initramfs/init
+++ b/initramfs/init
@@ -111,11 +111,11 @@ find_and_mount_cdrom() {
checkReturn
rmdir /.tmpfs/.squashfs
- # even though the CDROM gets unmounted here, it gets remounted after
- # the new init starts, so the message might be confusing...
- #echo -e -n " ${BOLD}${BLUE}*${NORM} Unmounting CDROM... "
- umount -l /.tmpfs/.cdrom
- #checkReturn
+ # disassociate the loopback device associated with the squashfs filesystem
+ /bin/losetup -d /dev/loop0
+
+ # the cdrom gets unmounted here and remounted after switch_root
+ umount /.tmpfs/.cdrom
rmdir /.tmpfs/.cdrom
echo -e -n " ${BOLD}${BLUE}*${NORM} Unmounting tmpfs... "
diff --git a/initramfs/initramfs.lst b/initramfs/initramfs.lst
index 5df159b..36139c0 100644
--- a/initramfs/initramfs.lst
+++ b/initramfs/initramfs.lst
@@ -34,6 +34,7 @@ slink /bin/sleep busybox 777 0 0
slink /bin/cat busybox 777 0 0
slink /bin/dmesg busybox 777 0 0
slink /bin/ls busybox 777 0 0
+slink /bin/losetup busybox 777 0 0
# module directories
dir /lib 755 0 0

Generated by cgit