[issue523] grml-debootstrap: provide more options

Tong Sun bts at bts.grml.org
Fri Dec 5 21:19:10 CET 2008


Tong Sun <suntong001 at gmail.com> added the comment:

On Sat, Nov 29, 2008 at 10:30 AM, Tong Sun <suntong001 at gmail.com>

>> And regarding the "layered module architecture": I noticed that your're playing
>> with the module layout using live-initramfs. If you have any information that
>> might help us in providing this feature or are interested in working on that
>> I'd love to hear from you. :)
>
> So far, I have just been putting the modules that I build for slax on
> top of grml. It works perfectly, but they are all my home, text or
> script files. I.e., no debian packages involved in the layered modules
> yet. I have something in mind how to go about the debian packages.
> I've successfully split debian packages info dir in var into a
> separated module.

I have

 tmp -> var/tmp/

in my root. And I split var & tmp into different layered module from
the base. This give me the freedom so that when later grml-full is
installed on top of it, I need just to replace the var module in the
grml-full iso, while keeping the grml-media-base as is. This is how I
created the split modules.

 cd $os_mnt
 mksquashfs . ../001-base.squashfs -noappend -b 256K -lzmadic 256K -e var

 mksquashfs var tmp ../002-vars.squashfs -noappend -b 256K -lzmadic 256K

You can exclude more in base and include more in var as you wish.

BTW, are you using 256K block size when creating squashfs modules?
According to Tomas from Slax, this is the best setting to get smaller
module size while maintaining good speed.

> The next step would be install grml-full on top of
> grml-media, and capture the changes using aufs, but haven't get time
> to go further yet. I'll definitely report back if I make any
> successful progress on it.

Another option is just to use

  dpkg-deb -X $dpkg extract_path

to extract a bunch of small tools into 'extract_path', then create
squashfs modules out of it, using the 'live-module -c' that I just
mentioned in my previous email.

This method has been proofed working fine. I put more than 10 Debian
tools together this way and use then in Slax. :-)

cheers

----------
assignedto: mika
messages: 1472, 1681, 1703, 1715
nosy: mika, suntong
priority: feature
status: need-eg
title: grml-debootstrap: provide more options
topic: grml-debootstrap

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue523>
_____________________________________


More information about the Bugs-changes mailing list