Remastering grml from Debian Sarge 

Goal 

Remastering grml from Debian Sarge which doesn't understand the GRML/GRML SquashFS file system, without applying the kernel patch for SquashFS.

Copy files out of grml squashfs 

  1. boot grml
  2. copy the content from /GRML, the loop mounted grml file system, to the place you want. mine is /mnt/os1/grml.remaster/GRML.

I now have a read-/writable copy of grml filesystem.

Note: I did not apply the kernel patch for SquashFS to my Debian Sarge because of approach above.

Making changes 

I boot back to my Debian Sarge to make the changes, because although I can't use the squashfs modules in Debian Sarge, I can create squashfs file system with the native squashfs-tools package.

All that I need to do is to chroot into it, and do whatever I like to do with grml, eg to run apt-get and so on.

[Tip]

Please refer to knoppix remastering howto, chroot howto and in depth coverage on chroot for details. Most important, don't forget to back up first.

Build a new squashfs image 

You now need to create a new squashfs image (the huge GRML/GRML file). The tool used is 'mksquashfs' from the squashfs-tools package. Ran it as root with the source directory and the destination file as arguments:

mksquashfs /mnt/os1/grml.remaster/GRML dest/GRML.new

documented on: 2006.07.02