[Grml] Re: grml-live, fai and package retreiving

T o n g mlist4suntong at yahoo.com
Sun Nov 11 18:19:53 CET 2007


On Sun, 11 Nov 2007 10:58:35 +0100, Michael Prokop wrote:

>> . . .am I right that the general procedure of grml-live would be
> 
>> . setup chroot base
>> . download/install all designated packages.
>> . clean up, including removing all download packages then,
>> . make iso
> 
> Yepp.
> 
>> If so, can I suggest an option to bind mount a given apt archive into the
>> chroot? That's what I always been doing when remastering. bind mount apt
>> archive into the chroot, download/install packages, umount the bind mount
>> so that we don't even need to do archive clean up.
> 
> Check out "Can I use my own (local) Debian mirror?" at
> http://grml.org/grml-live/ (the manpage provides the same content,
> JFYI):
> 
> ,---- [ http://grml.org/grml-live/ ]
> | If you want to use a local (for example NFS mount) mirror
> | additionally, just adjust MIRROR_DIRECTORY and MIRROR_SOURCES inside
> | /etc/grml/grml-live.conf as well.
> `----

Ah, thanks. The MIRROR_DIRECTORY is outside chroot, correct? Will it get
wiped when building the iso?

hmm, when trying to answer the above questions using the UTSL method, I
noticed that it is not quite as what I proposed. 

- One has to build a (local) Debian mirror first before he is able to use
MIRROR_DIRECTORY and MIRROR_SOURCES. I haven't done that before.
Will I have to pull in the full Debian mirror, not just the
packages that I need? The bind mount method on the contrary, does not
require one to setup anything, and does not require storing any
unnecessary packages either.

- Using the MIRROR_DIRECTORY and MIRROR_SOURCES, grml-live still need to
download packages into the chroot, then wipe the downloaded before
building the iso. Even the mirror is local, there are still some quite
heavy disk RW going on. With bind mount and up to date local apt archive,
disk RW will be near-zero. Quite a performance boost, isn't it?

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/




More information about the Grml mailing list