[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Lenny-LiveCD boot error ("/bin/sh: can't access tty ...")



El Tuesday 12 February 2008 18:58:19 Sebastian Holler va escriure:
> I tried to build a Lenny image on my own with live-helper1.0~a37~20071120:
>
> lh_config \
> --distribution lenny --packages-list 'kde-core' --architecture i386 \
> --language de --bootloader syslinux --bootstrap debootstrap \
> --apt-secure disabled --union-filesystem aufs \
> --linux-packages 'linux-image-2.6 aufs-modules-2.6 squashfs-modules-2.6' \
> --initramfs 'live-initramfs'
> lh_clean
> lh_build
>
> The boot procedure of the final Live-CD breaks and opens a BusyBox.
> The "live.log" contains the following:
>
> mount: Mounting /dev/hda2 on /live/image failed: No such device
> stdin: error 0
> debug: Can not mount backdev /dev/loop0 (Image =
> /live/image/live/filesystem.squashfs) on croot/imagename
> //filesystem.squashfs
> mount: Mounting /dev/loop on //filesystem.squashfs failed: Invalid
> argument. ...
>
> The mount-command inside the busybox shows, that /dev/hdc is mounted on
> /live/image (and not /dev/hda2). Therefore in /live/image/live I can see
> the file "filesystem.squashfs".
>
> Using mksquashfs with -no-lzma option (by editing
> /usr/bin/lh_binary_rootfs) didn't solve this problem. (There are no
> problems with building Etch images.)
>
> Can anyone help me?
>
> Sebastian H.
>
--- live-initramfs-1.110.7/scripts/live    2007-11-18 15:10:11.000000000 +0100
+++ live-initramfs-jp/scripts/live    2008-02-10 19:33:10.000000000 +0100

Can be because fstype does not detect the filesystem type of squashfs 3.3 
files.

I propose the following patch for live-initramfs, where the filesystem type, 
if not detected, is assumed from the file extension.

@@ -962,9 +840,23 @@
                                panic "Unknown file system type on ${backdev} 
(${image})"
                        fi

+                       if [ -z "${fstype}" ]
+                       then
+                               fstype="${imagename#*.}"
+                               log_warning_msg "Unknown file system type on 
${backdev} (${image}) Assuming ${fstype}"
+                       fi
+
                        mkdir -p "${croot}/${imagename}"
 
> _______________________________________________
> debian-live-devel mailing list
> debian-live-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel





Reply to: