Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 281381

Summary: Custom LiveCD won't mount squashfs filesystem
Product: Gentoo Hosted Projects Reporter: Richard Scott <gentoo.bugs>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Scott 2009-08-13 20:45:14 UTC
Hi,

I have a script that I use to build a custom LiveCD that has been working since
2008. Now and then an issue crops up.

I am currently getting this error:

>> Mounting squashfs filesystem
mount: mounting /dev/loop0 on /newroot/mnt/livecd failed: Invalid argument
!! Failed to $1; failing back to shell...


BusyBox v1.7.4 (2009-08-12 17:29:57 BST) built-in shell (ash)
Enter 'help' for a list of build-in commands.

/bin/ash: can't access tty; job control turned off
#

The last known good build that I had was around the 5th Aug, and now nothing I
can do will help.

I have tried:

kernel versions >=2.6.29 with squashfs-tools-4.0
kernel version < 2.6.29 with squashfs-tools.3.x 

Nothing I can do will resolve this problem.

Does anyone have any clues as to what I can do?

Apparently its been fixed for the 'autobuild' process, perhaps someone from
there can offer some advice?

Thanks,

Richard.



Reproducible: Always

Steps to Reproduce:
Comment 1 Richard Scott 2009-08-13 20:45:26 UTC
*** Bug 281305 has been marked as a duplicate of this bug. ***
Comment 2 Richard Scott 2009-08-14 08:00:37 UTC
ok, I've found the issue.

If you use mksquashfs with both the -always-use-fragments and -nopad option, Genkernel can't mount the filesystem.

If you use one or the other on its own its all ok, but both together and it borks on mounting the squashfs filesystem :-(
Comment 3 Richard Scott 2009-08-14 08:31:34 UTC
ok, further testing concludes:

-always-use-fragments -nopad = bad
-always-use-fragments = good
-nopad = bad

Ok, so it seems that the "nopad" option is causing problems :-(

But hey, at least my problems is solved now :-)

I guess we can close this bug if we don't care about the "nopad" problem?

Rich
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2009-08-14 14:48:14 UTC
Nope, not really.