X fails to start after modifying squashfs

172 views
Skip to first unread message

Jared Hoover

unread,
Jan 18, 2012, 2:56:40 PM1/18/12
to Webconverger Users
Hello,

I am working on building a customized build of webconverger. In order
to do some of the things I want I need to add a line to the /etc/X11/
xinit/xinitrc so that a program runs when the X server starts up so
that Java will work correctly. Currently I have a build with java
included in installed packages but when I modify the squashfs I get an
error that Xorg cannot load the module for the video card. On booting
my custom spin in VirtualBox I get
(EE) Failed to load module "vboxvideo" (module does not exist, 0)
(EE) open /dev/fb0: no such file or directory
...
waiting for X server to shut down error setting MTRR (base =
0xe0000000, wize = 0x00c00000, type = 1) Invalid argument (22)

I am able to boot the customized spin correctly before modifying the
contents of the squashfs filesystem so I know it's something to do
with how I'm modifying it. Here are the steps I have taken to modify
the file:

sudo unsquashfs filesystem.squashfs
add a line to the /etc/X11/xinit/xinitrc file
sudo mksquashfs squashfs-root/ filesystem.squashfs
move the old filesystem.squashfs out of the way
genisoimage -o webc-custom-blah.iso -b -r -J -l -cache-inodes -allow-
multidot -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/
isolinux.bin -c isolinux/boot.cat temp/

I even tried removing the line I added just to prove that it wasn't
the addition made that was causing it and the result is the same. I
have a feeling this has something to do with permissions within the
squashfs filesystem but I'm not 100% sure. Everything else seems to
start up correctly until it gets to the point where the x server
starts.

Thanks,
Jared

Kai Hendry

unread,
Jan 19, 2012, 11:02:40 PM1/19/12
to webc-...@googlegroups.com
AFAIK you can't modify the squashfs and repack it. It doesn't work.
I've tried in the past without success. :/

I'm not entirely sure why, perhaps take the question to Debian Live.

GMF

unread,
Jan 21, 2012, 7:07:18 AM1/21/12
to Webconverger Users
Hi @all,
I´ve always repack squashfs because of special wishes for my kiosks.

Here are my steps:
## extract squashfs
mount -o loop /tmp/webc.iso /media/stick
rsync -av /media/stick /media/stick_write
umount /media/stick
cp /media/stick_write/stick/live/filesystem.squashfs /home/
webconverger/working/
cd /home/webconverger/working/
unsquashfs filesystem.squashfs
cd /home/webconverger/working/squashfs-root
rm /home/webconverger/working/filesystem.squashfs

##modify
change all the things as root (not this sudo stuff)
change some owners back to webc

##repack squashfs
cd /home/webconverger/working/squashfs-root/
rm filesystem.squashfs
mksquashfs * filesystem.squashfs
chmod +w /media/stick_write/stick/live/filesystem.squashfs
mv /home/webconverger/working/squashfs-root/filesystem.squashfs /media/
stick_write/stick/live/

## edit bootmenu
chmod +w /media/stick_write/stick/isolinux/live.cfg
mcedit /media/stick_write/stick/isolinux/live.cfg

##rebuild iso
cd /home/webconverger/working
mkisofs -o /home/webconverger/working/mywebc.iso -b -r -J -l -cache-
inodes -allow-multidot -no-emul-boot -boot-load-size 4 -boot-info-
table -b isolinux/isolinux.bin -c isolinux/boot.cat /media/stick_write/
stick
/usr/bin/isohybrid /home/webconverger/working/mywebc.iso



These steps worked like a charm at least with version 7.x

Catch the giant and have a nice day
GMF

Jared Hoover

unread,
Jan 23, 2012, 8:19:55 PM1/23/12
to Webconverger Users
I tried it again and it worked fine. I've figured out how to insert
files and make changes inside the chroot during the build process now
so I don't think I'll have to worry about unpacking and repacking the
squashfs.

Back in August when I was building my first webconverger images I
unpacked and repacked the squashfs multiple times with success so I
was just wondering if something had changed. I'm not sure why it
failed for me a couple of times this time around but now it's working
*shrug*.

tonyg...@gmail.com

unread,
Oct 12, 2012, 8:29:00 PM10/12/12
to webc-...@googlegroups.com, anono...@gmail.com
Can anyone tell me the build they used to repack it?

I have been repacking with ubuntu without any modifications and I can't get x to load with the repack.  This is very frustrating.  I wish there was some up to date instructions.

Kai Hendry

unread,
Oct 13, 2012, 5:41:13 AM10/13/12
to webc-...@googlegroups.com
On 13 October 2012 01:29, <tonyg...@gmail.com> wrote:
> x to load with the repack. This is very frustrating. I wish there was some
> up to date instructions.

http://webconverger.org/develop/ is uptodate. Please build as
described if you are not prepared use the customisation service.
Reply all
Reply to author
Forward
0 new messages