mksquashfs freezes after customizing

Asked by Jan Owoc

I am trying to customize Ubuntu 9.04 amd64 using Ubuntu 8.04.2 LTS amd64 as a host on a physical 64-bit machine. Among other things, I updated everything, and the update to acpi failed to configure (may or may not be related).

After adding/removing all the packages, language files, etc., uck proceeds to prepare the squashfs image.
(...)
ISO customization script finished
Updating files lists...
Packing SquashFS image...
Parallel mksquashfs: Using 2 processors
Creating little endian 3.1 filesystem on /home/***/tmp/remaster-iso/casper/filesystem.squashfs, block size 131072.
TIOCGWINZ ioctl failed, defaulting to 80 columns
[== ] 4435/117935 3%

Usually (I've used uck about a dozen times), this process finishes quickly. Now it is frozen at 3% and the cpu is idle.

Running this command "by hand" will freeze mksquashfs at the same place:
sudo /bin/bash /usr/bin/uck-remaster-pack-rootfs -c /home/***/tmp

Is there a way to find out which file is causing it to fail (and why)?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Customization Kit Edit question
Assignee:
No assignee Edit question
Solved by:
Fabrizio Balliano
Solved:
Last query:
Last reply:
Revision history for this message
Best Fabrizio Balliano (fabrizio-balliano) said :
#1

actually i think this question should be ask to the mksquashfs maintainers

Revision history for this message
Jan Owoc (jsowoc) said :
#2

Thanks Fabrizio Balliano, that solved my question.

Revision history for this message
Jan Owoc (jsowoc) said :
#3

The specific bug report that pertains to what I was experiencing is:
https://bugs.launchpad.net/ubuntu/+source/squashfs/+bug/222700

I edited /usr/lib/uck/remaster-live-cd.sh by hand to add "-no-sparse" as a mksquashfs option. Will let you know if this fixes the problem.

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) said :
#4

hum the squashfs is prepared by the livecd-rootfs package which is distribuited by ubuntu, that's strange it's buggy, anyway i'll try your tip, thanks

Revision history for this message
Jan Owoc (jsowoc) said :
#5

The building worked when I added "-no-sparse" to the file, when it did not work before. I have a working image, so I am happy.

I was experimenting with figuring out where it failed in the build tree, and I could create a squashfs image of lib/modules or of lib/partman, but not of both. I am on a dual-core machine with 64-bit Ubuntu 8.04.2 with all updates installed (mksquashfs version 3.3 (2007/10/31)), trying to remaster 64-bit Ubuntu 9.04.