Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281381 - Custom LiveCD won't mount squashfs filesystem
Summary: Custom LiveCD won't mount squashfs filesystem
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
: 281305 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-13 20:45 UTC by Richard Scott
Modified: 2009-08-14 14:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.