You are not logged in.

#1 2010-11-14 19:17:50

guest234
Member
Registered: 2010-11-14
Posts: 3

Squashfs mount hangs in initrd environment

When trying to mount a gzip-compressed squashfs from file in the initrd environment mount process hangs with no messages. Nothing in dmesg. Judging by the sound, it takes 100% CPU. Control-c does nothing, but kill (SIGTERM, I presume) from another vt works and the process (or shell?) produces a short message, "Terminated" or similar. Squashfs module is preloaded. Tried copying the file being mounted into RAM first and mounting from there — same result. Hangs even if a nonexisting FS type is given on the command line. Same with -o loop.

Reading from the file in initrd environment works. Mounting that same file in a fully booted Arch system works.
What could possibly be wrong?

Offline

#2 2010-11-14 19:25:45

guest234
Member
Registered: 2010-11-14
Posts: 3

Re: Squashfs mount hangs in initrd environment

If you know how to debug it, please provide me with instructions. Though I only have limited bash and Lua experience.

Edit:
Aha, the initrd's mount is a function in busybox, not the mount(8) program, so it might be a busybox bug.
Will try using mount(8) instead tomorrow.

Last edited by guest234 (2010-11-14 19:35:39)

Offline

#3 2010-11-15 09:43:57

guest234
Member
Registered: 2010-11-14
Posts: 3

Re: Squashfs mount hangs in initrd environment

Yes, busybox was the problem. Including /bin/mount into BINARIES variable and loop into MODULES in the /etc/mkinitcpio.conf and then recompiling kernel image with mkinitcpio -p kernel26 solves it.

Offline

Board footer

Powered by FluxBB