Update docs regarding squeeze and apt-cacher-ng
[grml-live.git] / docs / grml-live.txt
1 grml-live(8)
2 ============
3
4 Name
5 ----
6
7 grml-live - build framework based on FAI for generating a grml and Debian based
8 Linux Live system (CD/ISO)
9
10 Synopsis
11 --------
12
13 grml-live [-a <architecture>] [-c <classe[s]>] [-C <configfile>] [-g
14 <grml_name>] [-i <iso_name> ] [-o <output_directory>] [-r <release_name>] [-s
15 <suite>] [-t <template_directory>] [-v <version_number>] [-bBFhquVz]
16
17 CAUTION: Please check out <<current_state,the 'Current state of grml-live with
18 squashfs-tools and kernel' section>> for details about current state of involved
19 tools before starting with grml-live or if you encounter any problems.
20
21 Description
22 -----------
23
24 grml-live provides the build system for creating a grml and Debian based Linux
25 Live-CD. The build system is based on
26 link:http://www.informatik.uni-koeln.de/fai/[FAI] (Fully Automatic
27 Installation). grml-live uses the "fai dirinstall" feature to generate a chroot
28 system based on the class concept of FAI (see later sections for further
29 details) and provides the framework to be able to generate a full-featured ISO.
30 It does not use all the FAI features by default though and you don't have to
31 know FAI to be able to use it.
32
33 The use of FAI gives you the flexibility to choose the packages you would like
34 to include on your very own Linux Live-CD without having to deal with all the
35 details of a build process.
36
37 CAUTION: grml-live does **not** use /etc/fai for configuration but instead
38 provides and uses /etc/grml/fai. This ensures that it does not clash with
39 default FAI configuration and packages, so you can use grml-live and FAI
40 completely independent at the same time!
41
42 [NOTE]
43
44 Please notice that you should have a fast network connection as all the Debian
45 packages will be downloaded and installed via network. If you want to use a
46 local mirror (strongly recommended if you plan to use grml-live more than once)
47 checkout mkdebmirror (see /usr/share/doc/grml-live/examples/mkdebmirror),
48 debmirror(1), reprepro(1) (see /usr/share/doc/grml-live/examples/reprepro/ for a
49 sample configuration), apt-cacher(1) and approx(8). To avoid downloading the
50 base system again and again check out FAI's NFSROOT (see FAQ of this document
51 for details).
52
53 Options
54 -------
55
56   -a **ARCHITECTURE**::
57
58 Use the specified architecture instead of the currently running one.  This
59 allows building a 32bit system on a 64bit host (though you can't build a 64bit
60 system on a 32bit system/kernel of course). Please notice that real
61 crosscompiling (like building a ppc system on x86) isn't possible due to the
62 nature and the need of working in a chroot. Currently supported values: i386
63 and amd64.
64
65   -b::
66
67 Build the ISO without updating the chroot via FAI. This option is useful for
68 example when working on stable releases: if you have a working base
69 system/chroot and do not want to execute any further updates (via "-u" option)
70 but intend to only build the ISO.
71
72   -B::
73
74 Build the ISO without touching the chroot at all. This option is useful if
75 you modified anything that FAI or grml-live might adjust via grml's FAI
76 scripts.  It's like the '-b' option but even more advanced. Use only if you
77 really know that you do not want to update the chroot.
78
79   -c **CLASSES**::
80
81 Specify the CLASSES to be used for building the ISO via FAI.  By default only
82 the classes GRMLBASE, GRML_MEDIUM and I386 are assumed, resulting in a small base
83 system (being about ~180MB total ISO size). If using a non-I386 system (like
84 amd64) you should specify the appropriate architecture as well. Additionally you
85 can specify a class providing a grml-kernel (see
86 <<classes,the 'CLASSES' section in this document>> for details about available classes).
87 So instead of GRML_MEDIUM you can also use GRML_SMALL and GRML_FULL.
88
89   -C **CONFIGURATION_FILE**::
90
91 The specified file is used as configuration file for grml-live. By default
92 /etc/grml/grml-live.conf is used for main configuration. If a file named
93 /etc/grml/grml-live.local exists it is used as well (sourced after reading
94 /etc/grml/grml-live.conf to allow overriding settings). As a last option the
95 specified configuration file is sourced so it is possible to override settings
96 of /etc/grml/grml-live.conf as well as of /etc/grml/grml-live.local. Please
97 notice that all configuration files have to be adjusted during execution of
98 grml-live, so please make sure you use /etc/grml/grml-live.conf as a base for
99 your own configuration file. Please also notice that the configuration file
100 specified via this option is **not** (yet) supported inside the
101 scripts/hooks/classes at /etc/grml/fai/config. Instead use
102 /etc/grml/grml-live.conf and/or /etc/grml/grml-live.local for configuration
103 stuff used inside /etc/grml/fai/config.
104
105   -F::
106
107 Force execution and do not prompt for acknowledgment of configuration.
108
109   -g **GRML_NAME**::
110
111 Set the grml flavour name. Common usage examples: grml, grml-small, grml64.
112 Please do NOT use blanks and any special characters like '/', ';' inside
113 GRML_NAME, otherwise you might notice problems with booting.
114
115   -h::
116
117 Display short usage information and exit.
118
119   -i **ISO_NAME**::
120
121 Specify name of ISO which will be available inside $OUTPUT_DIRECTORY/grml_isos
122 by default.
123
124   -o **OUTPUT_DIRECTORY**::
125
126 Main output directory of the build process of FAI.  Some directories are created
127 inside this target directory, being: grml_cd (where the files for creating the
128 ISO are located, including the compressed squashfs file), grml_chroot (the
129 chroot system) and grml_isos (where the resulting ISO is stored).
130
131   -q::
132
133 Build the ISO without (re-)creating the squashfs compressed file using mksquashfs.
134 This option is useful if you just want to update parts outside the chroot in the ISO.
135 Consider combining this option with the build-only option '-b'.
136
137   -r **RELEASENAME**::
138
139 Specify name of the release.
140
141   -s **SUITE**::
142
143 Specify the Debian suite you want to use for your live-system.  Defaults to
144 "lenny" (being current Debian/stable). Supported values are: etch, lenny, sid.
145 Debian "squeeze" (current Debian/testing) requires base.tgz
146 (/etc/grml/fai/config/basefiles/....tar.gz) until it's supported by debootstrap.
147
148   -t **TEMPLATE_DIRECTORY**::
149
150 Specify place of the templates used for building the ISO. By default
151 (and if not manually specified) this is /usr/share/grml-live/templates/.
152
153   -u::
154
155 Update existing chroot instead of rebuilding it from scratch. This option is
156 based on the softupdate feature of FAI.
157
158   -v **VERSION_NUMBER**::
159
160 Specify version number of the release.
161
162   -V::
163
164 Increase verbosity in the build process.
165
166   -z::
167
168 Use ZLIB instead of LZMA compression in mksquashfs part of the build process.
169
170 Usage examples
171 --------------
172
173 To get a small, Debian-stable and grml-based Live-CD using /grml/grml-live
174 as build and output directory just run:
175
176   # grml-live
177
178 To get a small Debian-unstable and grml-small based Live-CD using
179 /home/mika/grml-live as build and output directory just use:
180
181   # grml-live -s sid -c GRMLBASE,GRML_SMALL,I386 -o /home/mika/grml-live
182
183 To get a medium sized, Debian-unstable and grml-based Live-CD for i386
184 architecture using /grml/grml-live as build and output directory just run:
185
186   # grml-live -s sid -a i386 -c GRMLBASE,GRML_MEDIUM,I386
187
188 To get a small, Debian-unstable and grml-based Live-CD using /tmp as build and
189 output directory and use grml_0.0-3.iso as ISO name (placed inside
190 /tmp/grml_isos) just invoke:
191
192   # grml-live -o /tmp -c GRMLBASE,GRML_SMALL,I386 -s sid -i grml_0.0-3.iso
193
194 [NOTE]
195
196 If you have about 700MB of free space inside /dev/shm (being a tmpfs, usually
197 you should have >=1GB of RAM) just run "mount -o remount,suid,dev,rw /dev/shm"
198 and use /dev/shm as build and output directory - resulting in very fast build
199 process.  But please be aware of the fact that rebooting your system will result
200 in an empty /dev/shm, so please use another directory for $CHROOT_OUTPUT,
201 $BUILD_OUTPUT and $ISO_OUTPUT if you plan to create more persistent output. :)
202
203 Main features of grml-live
204 --------------------------
205
206 * create a grml-/Debian-based Linux Live-CD with one single command
207
208 * class based concept, providing a maximum of flexibility
209
210 * supports integration of own hooks, scripts and configuration
211
212 * supports use and integration of own Software and/or Kernels via simple use of
213 Debian repositories
214
215 * native support of FAI features
216
217 * multi-arch support (work in progress)
218
219 The class concept
220 -----------------
221
222 grml-live uses FAI and its class based concept for adjusting configuration and
223 setup according to your needs. This gives you flexibility and strength without
224 losing the simplicity in the build process.
225
226 The main and base class provided by grml-live is named GRMLBASE. It's strongly
227 recommended to **always** use the class GRMLBASE when building an ISO using
228 grml-live, as well as the architecture dependent class which provides the kernel
229 (being 'I386' for x86_32 and 'AMD64' for x86_64) and a GRML_* class (like
230 GRML_SMALL, GRML_MEDIUM or GRML_FULL). The following files and directories are
231 relevant for class GRMLBASE by default:
232
233   /etc/grml/fai/config/scripts/GRMLBASE/
234   /etc/grml/fai/config/debconf/GRMLBASE
235   /etc/grml/fai/config/class/GRMLBASE.var
236   /etc/grml/fai/config/hooks/instsoft.GRMLBASE
237   /etc/grml/fai/config/package_config/GRMLBASE
238
239 Take a look at the next section for information about the concept of those
240 files/directories.
241
242 If you want to use your own configuration, extend an existing configuration
243 and/or add additional packages to your ISO just invent a new class (or extend an
244 existing one). For example if you want to use your own class named "FOOBAR" just
245 extend CLASSES="GRMLBASE,GRML_SMALL,I386" inside /etc/grml/grml-live.conf to
246 CLASSES="GRMLBASE,GRML_SMALL,I386,FOOBAR" or invoke grml-live using the classes
247 option: "grml-live -c GRMLBASE,GRML_SMALL,I386,FOOBAR ...".
248
249 More details regarding the class concept can be found in the documentation of
250 FAI itself (being available at /usr/share/doc/fai-doc/).
251
252 [[X7]]
253 [[classes]]
254 Available classes
255 -----------------
256
257 The package selection part of the classes can be found in
258 /etc/grml/fai/config/package_config whereas some further classes are defined for
259 example in /etc/grml/fai/config/scripts/ so specific feature sets can be
260 selected. The following classes are predefined:
261
262 * DEBORPHAN: get rid of all packages listed in output of Deborphan
263
264 * GRMLBASE: the main class responsible for getting a minimal subset of what's
265 defining a grml system. Important parts of the buildprocess are specified in
266 this class as well, so unless you have a really good reason you should always
267 use this class.
268
269 * GRML_FORENSIC: tools for forensic investigations which has been created
270 by people from link:http://www.forensic-geeks.org/[forensic-geeks.org].
271
272 * GRML_FULL: full featured grml, also known as the "normal", full grml.
273
274 * GRML_MEDIUM: medium sized grml version, known as grml-medium
275
276 * GRML_POWERPC: grml for PowerPC architecture, not supported yet (still work in
277 progress)
278
279 * GRML_SMALL: minimum sized grml version, known as grml-small
280
281 * LATEX_CLEANUP: get rid of several very large LaTeX directories
282 (like some /usr/share/doc/texlive-*, /usr/share/doc/texmf,...)
283
284 * LOCALES: use full featured locales setup (see /etc/locale.gen.grml). This
285 avoids to get rid of /usr/share/locale - which happens by default otherwise - as
286 well.
287
288 * NO_ONLINE: do not run scripts during the chroot build process which require a
289 network connection
290
291 * RELEASE: run some specific scripts and commands to provide the workflow for an
292 official grml release
293
294 * REMOVE_DOCS: get rid of documentation directories (like /usr/share/doc,
295 /usr/share/man/, /usr/share/info,...)
296
297 * XORG: providing important packages for use with a base grml-featured X.org
298 setup
299
300 Files
301 -----
302
303 Notice that grml-live ships FAI configuration files that do not use the same
304 namespace as the FAI packages itself. This ensures that grml-live does not clash
305 with your usual FAI configuration, so instead of /etc/fai/fai.conf (package
306 fai-client) grml uses /etc/grml/fai/fai.conf instead. For more details see
307 below. To get an idea how another configuration or example files could look like
308 check out /usr/share/doc/fai-doc/examples/simple/ (provided by Debian package
309 fai-doc). Furthermore /usr/share/doc/fai-doc/fai-guide.html/ch-config.html
310 provides documentation regarding configuration possibilities.
311
312   /usr/sbin/grml-live
313
314 Script for the main build process. Requires root permissions for execution.
315
316   /etc/grml/grml-live.conf
317
318 Main configuration file for grml-live. All the important steps can be configured
319 at this stage.
320
321   /etc/grml/fai/fai.conf
322
323 Main configuration file for FAI which specifies where all the configuration
324 files and scripts for FAI/grml-live can be found. By default it is set to
325 FAI_CONFIGDIR=/etc/grml/fai/config, a directory shipped by grml-live
326 out-of-the-box so you shouldn't have to configure anything in this file.
327
328   /etc/grml/fai/make-fai-nfsroot.conf
329
330 This file is used by make-fai-nfsroot(8) only. Usually you don't have to change
331 anything inside this file. If you want to modify NFSROOT though you can adjust
332 it there.
333
334   /etc/grml/fai/NFSROOT
335
336 This file specifies the package list for creating the NFSROOT.
337
338   /etc/grml/fai/apt/sources.list
339
340 This file specifies which mirrors should be considered for retrieving the Debian
341 packages when creating the main chroot (including all the software you would
342 like to see included). Important: this file should *not* be adjusted manually!
343 Instead use the GRML_LIVE_SOURCES variable inside /etc/grml/grml-live.conf or
344 /etc/grml/grml-live.local which modifies /etc/grml/fai/apt/sources.list
345 on-the-fly via grml-live then. If you want to generally adjust apt configuration
346 check out /etc/grml/fai/files/etc/apt instead.
347
348   /etc/grml/fai/config/
349
350 The main directory for configuration of FAI/grml-live. More details below.
351
352   /etc/grml/fai/config/class/
353
354 This directory contains files which specify main configuration variables for the
355 FAI classes.
356
357   /etc/grml/fai/config/debconf/
358
359 This directory provides the files for preseeding/configuration of debconf
360 through files.
361
362   /etc/grml/fai/config/hooks/
363
364 This directory provides files for customising the build process through hooks.
365 Hooks are user defined programs or scripts, which are called during the
366 installation process.
367
368   /etc/grml/fai/config/package_config/
369
370 Directory with lists of software packages to be installed or removed.  The
371 different classes describe what should find its way to your ISO.  When running
372 "grml-live -c GRMLBASE,GRML_SMALL,I386 ..." only the configuration of GRMLBASE,
373 GRML_SMALL and and I386 will be taken. If you use 'grml-live -c
374 GRMLBASE,GRML_SMALL,I386,FOOBAR ...' then the files of GRMLBASE, GRML_SMALL,
375 I386 **plus** the files from FOOBAR will be taken. So just create a new class to
376 adjust the package selection according to your needs.  Please notice that the
377 directory GRMLBASE contains a package list defining a minimum but still
378 reasonable package configuration.
379
380   /etc/grml/fai/config/scripts/
381
382 Scripts for customising the ISO within the build process.
383
384   /etc/grml/fai/files/
385
386 This directory provides files used inside the scripts of
387 /etc/grml/fai/config/scripts/*. For a full documentation what happens with the
388 files please refer to the source of the scripts.
389
390   /etc/grml/fai/live-initramfs/
391
392 This directory provides the files used for building the initramfs/initrd via
393 live-initramfs(8).
394
395 Available log files
396 -------------------
397
398 grml-live itself logs to /var/log/grml-live.log. Unless you set ZERO_LOGFILE in
399 /etc/grml/grml-live.conf the output is appended to the file. If you set the
400 ZERO_LOGFILE configuration option the logfile will be truncated on each new
401 invocation of grml-live.
402
403 The FAI part of grml-live logs to /var/log/fai/$HOSTNAME/ - so the
404 default being /var/log/fai/grml/.
405
406 If you are using the grml-live buildd you will find the logs of the grml-live
407 run at /var/log/grml-buildd.stdout and /var/log/grml-buildd.stderr.
408
409 Requirements for the build system
410 ---------------------------------
411
412 * any Debian based system should be sufficient (if not it's a bug, so please
413 send us a bug report then) [a usual link:http://grml.org/grml2hd/[grml2hd]
414 harddisk installation ships all you need]
415
416 * enough free disk space; at least 800MB are required for a minimal grml-live
417 run (\~400MB for the chroot [$CHROOT_OUTPUT], \~150MB for the build target
418 [$BUILD_OUTPUT] and \~150MB for the resulting ISO [$ISO_OUTPUT] plus some
419 temporary files), if you plan to use GRML_FULL you should have at least 4GB of
420 total free disk space
421
422 * fast network access for retrieving the Debian packages used for creating the
423 chroot (check out "local mirror" and "NFSROOT" to workaround this problem as far
424 as possible)
425
426 For further information see next section.
427
428 [[X8]]
429 [[current_state]]
430 Current state of grml-live with squashfs-tools and kernel
431 ---------------------------------------------------------
432
433 To make it easier to track problems this section documents current state of
434 grml-live playing together with squashfs-tools / squashfs-lzma-tools (for
435 building the compressed file) and the kernel version. Documentation of this
436 section is up2date by 02nd of december 2008, please report any bugs you
437 encounter.
438
439 System
440 ~~~~~~
441
442 * grml-live, version 0.9.6
443
444 * building grml-medium (Debian/unstable)
445
446 * software versions used in the ISO (being installed automatically, recorded
447 just as a reference):
448
449   ii  busybox             1:1.10.2-2          Tiny utilities for small and embedded systems
450   ii  initramfs-tools     0.92f.grml01        tools for generating an initramfs
451   ii  klibc-utils         1.5.12-2            small utilities built with klibc for early boot
452   ii  live-initramfs      1.139.1-4grml.03    Debian Live initramfs hook
453   ii  lvm2                2.02.39-2           The Linux Logical Volume Manager
454   ii  mdadm               2.6.7.1-1           tool to administer Linux MD arrays (software RAID)
455   ii  udev                0.125-6grml0        /dev/ and hotplug management daemon
456
457 Using squashfs-lzma-tools 3.3-1 on the build system
458 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
459
460 squashfs-lzma-tools from the grml repository supports kernel 2.6.26-grml[64]
461 (version >=grml.05) using both lzma and zlib (-nolzma) compression. It's the
462 recommended package for building ISOs with grml-live currently!
463
464 The packages can be downloaded from
465 link:http://deb.grml.org/pool/main/s/squashfs-lzma/[http://deb.grml.org/pool/main/s/squashfs-lzma/].
466
467 [NOTE]
468 Please use squashfs-lzma-tools 3.3-1 if you want to remaster release 2008.11 of grml.
469
470 Using squashfs-tools 1:3.3-7 on the build system
471 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
472
473 squashfs-tools 1:3.3-7 is available via Debian/unstable and Debian/testing
474 (lenny) pool running:
475
476   # aptitude install squashfs-tools=1:3.3-7
477
478 or directly via downloading the files
479 http://grml.org/squashfs/squashfs-tools_3.3-7_i386.deb (for x86) or
480 http://grml.org/squashfs/squashfs-tools_3.3-7_amd64.deb (for amd64) [both build
481 on and for Debian/etch but working with testing and unstable as well].
482
483 Please notice that squashfs-tools 1:3.3-7 does NOT support LZMA compression
484 at all (so you won't be able to remaster release 2008.11 for example). The
485 -nolzma option of mksquashfs is not available therefore (even though
486 grml-live will deactivate it for you automatically anyway). Please use
487 squashfs-lzma-tools instead.
488
489 * Kernel 2.6.23-grml: does NOT work, please use squashfs-tools 1:3.2r2-9exp1
490                       instead if you still want to use kernel 2.6.23
491 * Kernel 2.6.26-grml: works (without LZMA compression of course!)
492
493 Using squashfs-tools 1:3.2r2-9exp1 on the build system
494 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495
496 squashfs-tools 1:3.2r2-9exp1 is available via the grml-testing repository,
497 running:
498
499   # aptitude install squashfs-tools=1:3.2r2-9exp1
500
501 or directly via downloading the files
502 http://grml.org/squashfs/squashfs-tools_3.2r2-9exp1_i386.deb (for x86) or
503 http://grml.org/squashfs/squashfs-tools_3.2r2-9exp1_amd64.deb (for amd64).
504
505 Versions with ZLIB compression (SQUASHFS_OPTIONS='-nolzma' or -z
506 option in grml-live cmdline):
507
508 * Kernel 2.6.23-grml: works
509 * Kernel 2.6.26-grml: works
510
511 Versions with LZMA compression:
512
513 * Kernel 2.6.23-grml: works
514 * Kernel 2.6.26-grml: does NOT work, please use zlib mode instead or switch
515   to Debian package squashfs-lzma-tools (see section above).
516
517 FAQ
518 ---
519
520 Help, I'm using Debian etch and I don't have FAI version >3.2
521 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
522
523   wget http://www.informatik.uni-koeln.de/fai/download/etch/fai-client_3.2.8_all.deb \
524        http://www.informatik.uni-koeln.de/fai/download/etch/fai-server_3.2.8_all.deb \
525        http://www.informatik.uni-koeln.de/fai/download/etch/fai-doc_3.2.8_all.deb
526   dpkg -i fai-client_3.2.8_all.deb fai-server_3.2.8_all.deb fai-doc_3.2.8_all.deb
527
528 or check out the link:http://www.informatik.uni-koeln.de/fai/[FAI-homepage] for
529 further details.
530
531 I've problems with the build process. How to start debugging?
532 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
533
534 Check out the logs inside /var/log/fai/... If you don't have the time to debug
535 the problem in further detail or don't know how to proceed just send a copy of
536 your config, logs and the commandline with a short problem description to
537 <mika@grml.org>:
538
539   # history | grep grml-live > /etc/grml/grml_live.cmdline
540   # tar zcf grml_live_problem.tar.gz /etc/grml/grml-live.conf \
541             /etc/grml/grml-buildd.conf /var/log/fai /etc/grml/fai
542
543 Can I use my own (local) Debian mirror?
544 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
545
546 Sure. Just adjust the variables GRML_LIVE_SOURCES and FAI_DEBOOTSTRAP (if not
547 already using NFSROOT's base.tgz) inside /etc/grml/grml-live.conf according to
548 your needs. Please don't forget that you should use the grml servers as well
549 (see default configuration) so all the grml packages can be downloaded as well.
550
551 If you want to use a local (for example NFS mount) mirror additionally, just
552 adjust MIRROR_DIRECTORY and MIRROR_SOURCES inside /etc/grml/grml-live.conf as
553 well.
554
555 Unless you specify GRML_LIVE_SOURCES and/or FAI_DEBOOTSTRAP the default from
556 /etc/grml/fai/apt/sources.list and /etc/grml/fai/make-fai-nfsroot.conf will be
557 taken. If you customise the variables in /etc/grml/grml-live.conf then the two
558 files will be adjusted during runtime automatically.
559
560 If MIRROR_DIRECTORY and MIRROR_SOURCES are specified the local mirror will be
561 taken as first entry in the generated sources.list so it's prefered over
562 non-local mirrors. Using a fallback mirror (via providing several mirrors in
563 GRML_LIVE_SOURCES as used by default) is a recommended setting.
564
565 How do I add additional Debian package(s) to my CD/ISO?
566 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
567
568 Just create a new class (using the package_config directory):
569
570   # cat > /etc/grml/fai/config/package_config/MIKA << EOF
571   PACKAGES aptitude
572
573   vim
574   another_name_of_a_debian_package
575   and_another_one
576   EOF
577
578 and specify it when invoking grml-live then:
579
580   # grml-live -c GRMLBASE,GRML_SMALL,I386,MIKA
581
582 I fscked up my grml-live configuration. How do I reset it to the defaults?
583 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
584
585 Notice: this deletes all your grml-live configuration files. If that's really
586 what you are searching for just run:
587
588   rm -rf /etc/grml/fai /etc/grml/grml-live.conf
589   dpkg -i --force-confnew --force-confmiss /path/to/grml-live_..._all.deb
590
591 [NOTE]
592
593 If you don't control your /etc using a version control system (VCS) yet it's a
594 good chance to start using it now. Check out
595 link:http://michael-prokop.at/blog/2007/03/14/maintain-etc-with-mercurial-on-debian/[http://michael-prokop.at/blog/2007/03/14/maintain-etc-with-mercurial-on-debian/]
596 for more details how to maintain /etc using the mercurial VCS.
597
598 How do I create a base.tgz for use as NFSROOT?
599 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
600
601 First of all build the chroot system:
602
603   mkdir /tmp/nfsroot && cd /tmp/nfsroot
604   debootstrap lenny /tmp/nfsroot/ http://ftp.de.debian.org/debian
605   tar zcf base.tgz ./
606
607 Then check out where your NFSROOT is located:
608
609   # grep '^NFSROOT' /etc/grml/fai/make-fai-nfsroot.conf
610   NFSROOT=/grml/fai/nfsroot
611
612 So as /grml/fai/nfsroot is your NFSROOT place the file under
613 /grml/fai/nfsroot/live/filesystem.dir/var/tmp/:
614
615   mv base.tgz /grml/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz
616
617 or even better use /etc/grml/fai/config/basefiles/$CLASSNAME.tar.gz instead.
618 Use I386 as $CLASSNAME for i386 builds and AMD64 for amd64 builds.
619
620 Now running "grml-live ..." will use this file as main system instead of
621 executing debootstrap. Check out the output for the following lines if using
622 NFSROOT:
623
624   [...]
625   Calling task_extrbase
626   Unpacking Debian base archive
627   Extracting /grml/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz
628   Calling task_mirror
629   [...]
630
631 or if using /etc/grml/fai/config/basefiles/$CLASSNAME.tar.gz for:
632
633   [...]
634   ftar: extracting /etc/grml/fai/config/basefiles///AMD64.tar.gz to
635   /grml-live/grml-live_20071029.22138/grml_chroot//
636   [...]
637
638 Set up apt-cacher / apt-cacher-ng for use with grml-live
639 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
640
641 Make sure /etc/grml/grml-live.conf provides according GRML_LIVE_SOURCES and
642 FAI_DEBOOTSTRAP:
643
644   # cat /etc/grml/grml-live.conf
645   [...]
646   GRML_LIVE_SOURCES="
647   deb http://localhost:3142/deb.grml.org grml-stable  main
648   deb http://localhost:3142/deb.grml.org grml-testing main
649   deb http://localhost:3142/ftp.de.debian.org/debian lenny main contrib non-free
650   "
651   [...]
652   FAI_DEBOOTSTRAP="lenny http://localhost:3142/ftp.de.debian.org/debian lenny main contrib non-free"
653
654 Make sure apt-cacher / apt-cacher-ng is running ('/etc/init.d/apt-cacher
655 restart' or '/etc/init.d/apt-cacher-ng restart'). That's it.  All downloaded
656 files will be cached in /var/cache/apt-cacher/ or /var/cache/apt-cacher-ng then.
657
658 Set up approx for use with grml-live
659 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
660
661 Make sure /etc/grml/grml-live.conf provides according GRML_LIVE_SOURCES and
662 FAI_DEBOOTSTRAP:
663
664   # cat /etc/grml/grml-live.conf
665   [...]
666   GRML_LIVE_SOURCES="
667   deb http://localhost:9999/grml            grml-stable  main
668   deb http://localhost:9999/grml            grml-testing main
669   deb http://localhost:9999/debian lenny    main contrib non-free
670   "
671   FAI_DEBOOTSTRAP="lenny http://localhost:9999/debian"
672
673 Configure approx:
674
675   # cat /etc/approx/approx.conf
676   [...]
677   debian http://ftp.at.debian.org/debian
678   grml   http://deb.grml.org/
679
680 Don't forget to restart approx (/etc/init.d/approx restart). That's it.
681 All downloaded files will be cached in /var/cache/approx now.
682
683 I've a question which isn't answered by this document
684 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
685
686 Don't hesitate to ask on IRC (channel #grml on irc.freenode.org) or just drop me
687 a mail: <mika@grml.org>
688
689 Download / install grml-live as a Debian package
690 ------------------------------------------------
691
692 Debian packages are available through the grml-repository at
693 link:http://deb.grml.org/pool/main/g/grml-live/[deb.grml.org].  If you want to
694 build a Debian package on your own (using for example a specific version or the
695 current development tree), just execute:
696
697   git clone git://git.grml.org/grml-live
698   cd grml-live
699   debuild -us -uc
700
701 Source
702 ------
703
704 The source of grml-live is available at
705 link:http://git.grml.org/?p=grml-live.git[http://git.grml.org/?p=grml-live.git]
706
707 TODO list
708 ---------
709
710 Check out link:http://wiki.grml.org/doku.php?id=grml-live[grml-live in the grml-wiki]
711 for details.
712
713 Bugs
714 ----
715
716 Please report feedback, link:http://grml.org/bugs/[bugreports] and wishes
717 link:http://grml.org/contact/[to the grml-team]!
718
719 Authors
720 -------
721 Michael Prokop <mika@grml.org>
722
723 /////////////////////////////////////
724 // vim:ai tw=80 ft=asciidoc expandtab
725 /////////////////////////////////////