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

Bug#475783: busybox: mounting loopback device fails in initrd (using live-initramfs)

* Bastian Blank <waldi@debian.org> [20080420 19:03]:
> On Sun, Apr 13, 2008 at 12:51:29AM +0200, Michael Prokop wrote:

> > I'm using live-initramfs for booting my live-cd system (using kernel
> > 2.6.23).  My old setup with busybox 1:1.1.3-5 used to work fine.
> > Nowadays using busybox version 1:1.9.2-2 with different versions of
> > klibc-utils, initramfs-tools and live-initramfs fails at the stage
> > of mounting the loopback device (being a squashfs file behind).

> Please provide commands used and error messages.

That's what I can find inside live.log:

| debug: Can not mount backdev /dev/loop0 (image = /live/image/live/grml-medium.squashfs) on croot/imagename //grml-medium.squashfs
| Usage: mount [-r] [-w] [-o options] [-t type] [-n] device directory

Debugging inside busybox (version 1:1.9.2-3, klibc-utils 1.5.7-4):

# md5sum /bin/mount
7b979b1804e776462f21b1ed43bf08b3  /bin/mount
# mkdir /mnt
# mount /dev/loop0 /mnt
Usage: mount [-r] [-w] [-o options] [-t type] [-n] device directory
# mv /bin/mount /bin/mount.unused
# ln -s /bin/busybox /bin/mount
# mount /dev/loop0 /mnt
# ls /mnt
bin etc [...]

So the mount binary of busybox works whereas the one from
klibc-utils seems to fail. As a reference (executing inside the
chroot where I'm building the initramfs):

# md5sum /usr/lib/klibc/bin/mount
7b979b1804e776462f21b1ed43bf08b3  /usr/lib/klibc/bin/mount

Tested also with klibc-utils 1.5.9-2 (same problem):

# md5sum /usr/lib/klibc/bin/mount
c1c83fc15996474a5621d47c68a1f28e  /usr/lib/klibc/bin/mount

Please let me know if you need any further information.

thx && regards,

Attachment: signature.asc
Description: Digital signature

Reply to: