use AMD64 class in usage examples and use GRML_FULL instead of GRML_MEDIUM/GRML_SMALL...
[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>] [-U <username>] [
16 -AbBFnNquVz]
17
18 CAUTION: Please check out <<current_state,the 'Current state of grml-live with
19 squashfs-tools and kernel' section>> for details about current state of involved
20 tools before starting with grml-live or if you encounter any problems.
21
22 Description
23 -----------
24
25 grml-live provides the build system for creating a grml and Debian based Linux
26 Live-CD. The build system is based on
27 link:http://fai-project.org/[FAI] (Fully Automatic
28 Installation). grml-live uses the "fai dirinstall" feature to generate a chroot
29 system based on the class concept of FAI (see later sections for further
30 details) and provides the framework to be able to generate a full-featured ISO.
31 It does not use all the FAI features by default though and you don't have to
32 know FAI to be able to use it.
33
34 The use of FAI gives you the flexibility to choose the packages you would like
35 to include on your very own Linux Live-CD without having to deal with all the
36 details of a build process.
37
38 CAUTION: grml-live does **not** use /etc/fai for configuration but instead
39 provides and uses ${GRML_FAI_CONFIG} which is pointing to /etc/grml/fai by default
40 (unless overriden using the ''-D'' option). This ensures that it does not clash
41 with default FAI configuration and packages, so you can use grml-live and FAI
42 completely independent at the same time!
43
44 [NOTE]
45
46 Please notice that you should have a fast network connection as all the Debian
47 packages will be downloaded and installed via network. If you want to use a
48 local mirror (strongly recommended if you plan to use grml-live more than once)
49 checkout mkdebmirror (see /usr/share/doc/grml-live/examples/mkdebmirror),
50 debmirror(1), reprepro(1) (see /usr/share/doc/grml-live/examples/reprepro/ for a
51 sample configuration), apt-cacher(1) and approx(8). To avoid downloading the
52 base system again and again check out FAI's NFSROOT (see FAQ of this document
53 for details).
54
55 Options
56 -------
57
58   -A::
59
60 Clean up output directories before attempting the build. Packs the chroot
61 into a tar archive, and removes chroot and iso build directories before exiting.
62
63   -a **ARCHITECTURE**::
64
65 Use the specified architecture instead of the currently running one.  This
66 allows building a 32bit system on a 64bit host (though you can't build a 64bit
67 system on a 32bit system/kernel of course). Please notice that real
68 crosscompiling (like building a ppc system on x86) isn't possible due to the
69 nature and the need of working in a chroot. Currently supported values: i386
70 and amd64.
71
72   -b::
73
74 Build the ISO without updating the chroot via FAI. This option is useful for
75 example when working on stable releases: if you have a working base
76 system/chroot and do not want to execute any further updates (via "-u" option)
77 but intend to only build the ISO.
78
79   -B::
80
81 Build the ISO without touching the chroot at all. This option is useful if
82 you modified anything that FAI or grml-live might adjust via grml's FAI
83 scripts.  It's like the '-b' option but even more advanced. Use only if you
84 really know that you do not want to update the chroot.
85
86   -c **CLASSES**::
87
88 Specify the CLASSES to be used for building the ISO via FAI.  By default only
89 the classes GRMLBASE, GRML_MEDIUM and I386/AMD64 (depending on system
90 architecture) are assumed, resulting in a small base system (being about ~180MB
91 total ISO size). If using a non-I386 system (like AMD64) you should specify the
92 appropriate architecture as well. Additionally you can specify a class providing
93 a grml-kernel (see <<classes,the 'CLASSES' section in this document>> for
94 details about available classes).  So instead of GRML_MEDIUM you can also use
95 GRML_SMALL and GRML_FULL.
96
97 [IMPORTANT]
98 All class names should be written in uppercase letters. Do not use a dash, use
99 an underscore. So do not use "amd64" but "AMD64", do not use "FOO BAR" but
100 "FOO_BAR".
101
102
103   -C **CONFIGURATION_FILE**::
104
105 The specified file is used as configuration file for grml-live. By default
106 /etc/grml/grml-live.conf is used as default configuration. If a file named
107 /etc/grml/grml-live.local exists it is used as well (sourced after reading
108 /etc/grml/grml-live.conf meant as main file for local configuration). As a last
109 option the specified configuration file is sourced so it is possible to override
110 settings of /etc/grml/grml-live.conf as well as of /etc/grml/grml-live.local.
111 Please notice that all configuration files have to be adjusted during execution
112 of grml-live, so please make sure you use /etc/grml/grml-live.conf as a base for
113 your own configuration file (usually /etc/grml/grml-live.local). Please also
114 notice that the configuration file specified via this option is **not** (yet)
115 supported inside the scripts/hooks/classes at ${GRML_FAI_CONFIG}/config. Instead use
116 /etc/grml/grml-live.local for configuration stuff used inside
117 ${GRML_FAI_CONFIG}/config.
118
119   -d **DATE**::
120
121 Use specified date as build date information on the ISO instead of the default.
122 The default is the date when grml-live is being executed (retrieved via
123 executing 'date +%Y-%m-%d'). The information is stored inside the file
124 /GRML/grml-version on the ISO, /etc/grml_version in the squashfs file and in all
125 the bootsplash related files. This option is useful if you want to provide an
126 ISO with release information for a specific date but have to build it in
127 advance. Usage example: '-d 2009-10-30'
128
129   -D **CONFIGURATION_DIRECTORY**::
130
131 The specified directory is used as configuration directory for grml-live and its
132 FAI. By default /etc/grml/fai is used as default configuration directory.  If
133 you want to have different configuration scripts, package definitions, etc. with
134 without messing with the global configuration under /etc/grml/fai provided by
135 grml-live this option provides you the option to use your own configuration
136 directory. This directory is what's being referred to as ${GRML_FAI_CONFIG}
137 throughout this documentation.
138
139   -F::
140
141 Force execution and do not prompt for acknowledgment of configuration.
142
143   -g **GRML_NAME**::
144
145 Set the grml flavour name. Common usage examples: grml, grml-small, grml64.
146 Please do NOT use blanks and any special characters like '/', ';' inside
147 GRML_NAME, otherwise you might notice problems while booting.
148
149   -h::
150
151 Display short usage information and exit.
152
153   -i **ISO_NAME**::
154
155 Specify name of ISO which will be available inside $OUTPUT_DIRECTORY/grml_isos
156 by default.
157
158   -I **CHROOT_INSTALL**::
159
160 Specify name of source directory which provides files that should become part of
161 the chroot/ISO. Not enabled by default. Note: the files are installed under '/'
162 in the chroot so you have to create the rootfs structure on your own.
163
164   -n::
165
166 Skip creation of the ISO file. This option is useful if you want to build/update
167 the chroot and/or recreate the squashfs file without building an ISO file.
168
169   -N::
170
171 Bootstrap the chroot without building bootloader, squashfs, or finalizing the
172 ISO. Use this option if installation of some packages fails, you want to run
173 custom commands or similar.
174 The main use of this option is to save time by skipping stages which aren't
175 necessary for bootstrapping the chroot and which would get executed more than
176 once when iterating through the initial bootstrapping.
177 Alternatively, use this option as a test run of grml-live. Once you are
178 satisfied with the state of your grml_chroot, use grml-live **-u** to build the
179 remaining stages and finalize the ISO.
180
181   -o **OUTPUT_DIRECTORY**::
182
183 Main output directory of the build process of FAI.  Some directories are created
184 inside this target directory, being: grml_cd (where the files for creating the
185 ISO are located, including the compressed squashfs file), grml_chroot (the
186 chroot system) and grml_isos (where the resulting ISO is stored).
187
188   -q::
189
190 Build the ISO without (re-)creating the squashfs compressed file using mksquashfs.
191 This option is useful if you just want to update parts outside the chroot in the ISO.
192 Consider combining this option with the build-only option '-b'.
193
194   -r **RELEASENAME**::
195
196 Specify name of the release.
197
198   -s **SUITE**::
199
200 Specify the Debian suite you want to use for your live-system.  Defaults to
201 "squeeze" (being current Debian/stable). Supported values are: etch, lenny,
202 squeeze, sid. Debian "squeeze" requires a recent base.tgz
203 (${GRML_FAI_CONFIG}/config/basefiles/$CLASSNAME.tar.gz) or a recent version of
204 debootstrap.
205
206   -t **TEMPLATE_DIRECTORY**::
207
208 Specify place of the templates used for building the ISO. By default
209 (and if not manually specified) this is /usr/share/grml-live/templates/.
210
211   -u::
212
213 Update existing chroot instead of rebuilding it from scratch. This option is
214 based on the softupdate feature of FAI.
215
216   -U **USERNAME**::
217
218 Sets ownership of all build output files to specified username before exiting.
219
220   -v **VERSION_NUMBER**::
221
222 Specify version number of the release.
223
224   -V::
225
226 Increase verbosity in the build process.
227
228   -z::
229
230 Use ZLIB instead of LZMA/XZ compression in mksquashfs part of the build process.
231
232 [[usage-examples]]
233 Usage examples
234 --------------
235
236 To get a small, Debian-stable and grml-based Live-CD using /grml/grml-live
237 as build and output directory just run:
238
239   # grml-live
240
241 To get a small Debian-unstable and grml-small based Live-CD using
242 /home/mika/grml-live as build and output directory just use:
243
244   # grml-live -s sid -c GRMLBASE,GRML_SMALL,AMD64 -o /home/mika/grml-live
245
246 To get a medium sized, Debian-unstable and grml-based Live-CD for amd64
247 architecture using /grml/grml-live as build and output directory just run:
248
249   # grml-live -s sid -a amd64 -c GRMLBASE,GRML_MEDIUM,AMD64
250
251 To get a small, Debian-unstable and grml-based Live-CD using /tmp as build and
252 output directory and use grml_0.0-3.iso as ISO name (placed inside
253 /tmp/grml_isos) just invoke:
254
255   # grml-live -o /tmp -c GRMLBASE,GRML_SMALL,AMD64 -s sid -i grml_0.0-3.iso
256
257 [NOTE]
258
259 If you have about 700MB of free space inside /dev/shm (being a tmpfs, usually
260 you should have >=1GB of RAM) just run "mount -o remount,suid,dev,rw /dev/shm"
261 and use /dev/shm as build and output directory - resulting in very fast build
262 process.  But please be aware of the fact that rebooting your system will result
263 in an empty /dev/shm, so please use another directory for $CHROOT_OUTPUT,
264 $BUILD_OUTPUT and $ISO_OUTPUT if you plan to create more persistent output. :)
265
266 [[main-features]]
267 Main features of grml-live
268 --------------------------
269
270 * create a grml-/Debian-based Linux Live-CD with one single command
271
272 * class based concept, providing a maximum of flexibility
273
274 * supports integration of own hooks, scripts and configuration
275
276 * supports use and integration of own Software and/or Kernels via simple use of
277 Debian repositories
278
279 * native support of FAI features
280
281 * multi-arch support (work in progress)
282
283 [[class-concept]]
284 The class concept
285 -----------------
286
287 grml-live uses FAI and its class based concept for adjusting configuration and
288 setup according to your needs. This gives you flexibility and strength without
289 losing the simplicity in the build process.
290
291 The main and base class provided by grml-live is named GRMLBASE. It's strongly
292 recommended to **always** use the class GRMLBASE when building an ISO using
293 grml-live, as well as the architecture dependent class which provides the kernel
294 (being 'I386' for x86_32 and 'AMD64' for x86_64) and a GRML_* class (like
295 GRML_SMALL, GRML_MEDIUM or GRML_FULL). The following files and directories are
296 relevant for class GRMLBASE by default:
297
298   ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/
299   ${GRML_FAI_CONFIG}/config/debconf/GRMLBASE
300   ${GRML_FAI_CONFIG}/config/class/GRMLBASE.var
301   ${GRML_FAI_CONFIG}/config/hooks/instsoft.GRMLBASE
302   ${GRML_FAI_CONFIG}/config/package_config/GRMLBASE
303
304 Take a look at the next section for information about the concept of those
305 files/directories.
306
307 If you want to use your own configuration, extend an existing configuration
308 and/or add additional packages to your ISO just invent a new class (or extend an
309 existing one). For example if you want to use your own class named "FOOBAR" just
310 set CLASSES="GRMLBASE,GRML_SMALL,AMD64,FOOBAR" inside /etc/grml/grml-live.local
311 or invoke grml-live using the classes option: "grml-live -c
312 GRMLBASE,GRML_SMALL,AMD64,FOOBAR ...".
313
314 More details regarding the class concept can be found in the documentation of
315 FAI itself (being available at /usr/share/doc/fai-doc/).
316
317 [[X7]]
318 [[classes]]
319 Available classes
320 -----------------
321
322 The package selection part of the classes can be found in
323 ${GRML_FAI_CONFIG}/config/package_config whereas some further classes are defined for
324 example in ${GRML_FAI_CONFIG}/config/scripts/ so specific feature sets can be
325 selected. The following classes are predefined:
326
327 * DEBORPHAN: get rid of all packages listed in output of Deborphan
328
329 * GRMLBASE: the main class responsible for getting a minimal subset of what's
330 defining a grml system. Important parts of the buildprocess are specified in
331 this class as well, so unless you have a really good reason you should always
332 use this class.
333
334 * GRML_FULL: full featured grml, also known as the "normal", full grml.
335
336 * GRML_MEDIUM: medium sized grml version, known as grml-medium
337
338 * GRML_POWERPC: grml for PowerPC architecture, not supported yet (still work in
339 progress)
340
341 * GRML_SMALL: minimum sized grml version, known as grml-small
342
343 * LATEX: LaTeX(-related) packages like auctex, texlive,...
344 (which used to be shipped by grml before the LaTeX removal)
345
346 * LATEX_CLEANUP: get rid of several very large LaTeX directories
347 (like some /usr/share/doc/texlive-*, /usr/share/doc/texmf,...)
348
349 * LOCALES: use full featured locales setup (see /etc/locale.gen.grml). This
350 avoids to get rid of /usr/share/locale - which happens by default otherwise - as
351 well.
352
353 * NO_ONLINE: do not run scripts during the chroot build process which require a
354 network connection
355
356 * RELEASE: run some specific scripts and commands to provide the workflow for an
357 official grml release
358
359 * REMOVE_DOCS: get rid of documentation directories (like /usr/share/doc,
360 /usr/share/man/, /usr/share/info,...)
361
362 * SOURCES: retrieve Debian source packages after installation. Files will be
363 placed in the output directory under grml_sources.
364
365 * XORG: providing important packages for use with a base grml-featured X.org
366 setup
367
368 [[files]]
369 Files
370 -----
371
372 Notice that grml-live ships FAI configuration files that do not use the same
373 namespace as the FAI packages itself. This ensures that grml-live does not clash
374 with your usual FAI configuration, so instead of /etc/fai/fai.conf (package
375 fai-client) grml uses ${GRML_FAI_CONFIG}/fai.conf instead. For more details see
376 below. To get an idea how another configuration or example files could look like
377 check out /usr/share/doc/fai-doc/examples/simple/ (provided by Debian package
378 fai-doc). Furthermore /usr/share/doc/fai-doc/fai-guide.html/ch-config.html
379 provides documentation regarding configuration possibilities.
380
381   /usr/sbin/grml-live
382
383 Script for the main build process. Requires root permissions for execution.
384
385   /etc/grml/grml-live.conf
386
387 Main configuration file for grml-live which should be considered as a reference
388 configuration file only. Please use /etc/grml/grml-live.local for local
389 configuration instead.
390
391   /etc/grml/grml-live.local
392
393 All the local configuration should go to this file. This file overrides any
394 defaults of grml-live. Configurations via /etc/grml/grml-live.local are preferred
395 over the ones from /etc/grml/grml-live.conf. If you want to override settings
396 from /etc/grml/grml-live.local as well you have to specify them on the grml-live
397 commandline.
398
399   ${GRML_FAI_CONFIG}/fai.conf
400
401 Main configuration file for FAI which specifies where all the configuration
402 files and scripts for FAI/grml-live can be found. By default the configuration
403 variables are FAI_CONFIG_SRC=file:///etc/grml/fai/config and
404 GRML_FAI_CONFIG=/etc/grml/fai/config - both pointing to a directory shipped by
405 grml-live out-of-the-box so you shouldn't have to configure anything in this
406 file.
407
408   ${GRML_FAI_CONFIG}/make-fai-nfsroot.conf
409
410 This file is used by make-fai-nfsroot(8) only. Usually you don't have to change
411 anything inside this file. If you want to modify NFSROOT though you can adjust
412 it there.
413
414   ${GRML_FAI_CONFIG}/NFSROOT
415
416 This file specifies the package list for creating the NFSROOT.
417
418   ${GRML_FAI_CONFIG}/apt/sources.list
419
420 This file specifies which mirrors should be considered for retrieving the Debian
421 packages when creating the main chroot (including all the software you would
422 like to see included). Important: this file should *not* be adjusted manually!
423 Instead use the GRML_LIVE_SOURCES variable inside /etc/grml/grml-live.conf or
424 /etc/grml/grml-live.local which modifies ${GRML_FAI_CONFIG}/apt/sources.list
425 on-the-fly via grml-live then. If you want to generally adjust apt configuration
426 use FAI's fcopy command with ${GRML_FAI_CONFIG}/config/files instead.
427
428   ${GRML_FAI_CONFIG}/config/
429
430 The main directory for configuration of FAI/grml-live. More details below.
431
432   ${GRML_FAI_CONFIG}/config/class/
433
434 This directory contains files which specify main configuration variables for the
435 FAI classes.
436
437   ${GRML_FAI_CONFIG}/config/debconf/
438
439 This directory provides the files for preseeding/configuration of debconf
440 through files.
441
442   ${GRML_FAI_CONFIG}/config/hooks/
443
444 This directory provides files for customising the build process through hooks.
445 Hooks are user defined programs or scripts, which are called during the
446 installation process.
447
448   ${GRML_FAI_CONFIG}/config/package_config/
449
450 Directory with lists of software packages to be installed or removed.  The
451 different classes describe what should find its way to your ISO.  When running
452 "grml-live -c GRMLBASE,GRML_SMALL,AMD64 ..." only the configuration of GRMLBASE,
453 GRML_SMALL and and AMD64 will be taken. If you use 'grml-live -c
454 GRMLBASE,GRML_SMALL,AMD64,FOOBAR ...' then the files of GRMLBASE, GRML_SMALL,
455 AMD64 **plus** the files from FOOBAR will be taken. So just create a new class to
456 adjust the package selection according to your needs.  Please notice that the
457 directory GRMLBASE contains a package list defining a minimum but still
458 reasonable package configuration.
459
460   ${GRML_FAI_CONFIG}/config/scripts/
461
462 Scripts for customising the ISO within the build process.
463
464   ${GRML_FAI_CONFIG}/live-initramfs/
465
466 This directory provides the files used for building the initramfs/initrd via
467 live-initramfs(8).
468
469 [[log-files]]
470 Available log files
471 -------------------
472
473 grml-live itself logs to /var/log/grml-live.log. Unless you set PRESERVE_LOGFILE
474 in your grml-live configuration the file is cleared on each new invocation of
475 grml-live.
476
477 The FAI part of grml-live logs to /var/log/fai/$HOSTNAME/ - so the
478 default being /var/log/fai/grml/.
479
480 If you are using the grml-live buildd you will find the logs of the grml-live
481 run at /var/log/grml-buildd.log.
482
483 If you want to store build information in a database just install the
484 grml-live-db Debian package. Further details available in the grml-live-db
485 manpage.
486
487 [[requirements]]
488 Requirements for the build system
489 ---------------------------------
490
491 * any Debian based system should be sufficient (if it doesn't work it's a bug,
492 please send us a bug report then) [a usual
493 link:http://grml.org/grml2hd/[grml2hd] harddisk installation (using grml or
494 grml-medium) ships all you need]. Check out <<deploy-on-debian,How do I deploy
495 grml-live on a plain Debian installation>> for details how to set up grml-live
496 on a plain, original Debian system.
497
498 * enough free disk space; at least 800MB are required for a minimal grml-live
499 run (\~400MB for the chroot [$CHROOT_OUTPUT], \~150MB for the build target
500 [$BUILD_OUTPUT] and \~150MB for the resulting ISO [$ISO_OUTPUT] plus some
501 temporary files), if you plan to use GRML_FULL you should have at least 4GB of
502 total free disk space
503
504 * fast network access for retrieving the Debian packages used for creating the
505 chroot (check out "local mirror" and "NFSROOT" to workaround this problem as far
506 as possible)
507
508 For further information see next section.
509
510 [[X8]]
511 [[current_state]]
512 Current state of grml-live with squashfs-tools and kernel
513 ---------------------------------------------------------
514
515 Use squashfs-tools >=4.2-1 (available from Grml repositories as well as from
516 Debian/unstable) to build Grml (based) ISOs featuring kernel version
517 2.6.38-grml[64].
518
519 ////////////////////////////////////////////////////////////////////////////////
520 Difference between squashfs-lzma-tools, squashfs-lzma-tools4 and squashfs-tools
521 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
522
523 Whereas the ZLIB compression is much faster in the build process, the LZMA
524 compression provides a smaller resulting ISO. If you're wondering: the official
525 Grml builds use the LZMA compression.
526
527 Squashfs-tools was introduced in Debian and once provided support for LZMA
528 compression. Sadly LZMA compression within squashfs-tools became unsupported and
529 therefore squashfs-lzma-tools[4] had to be introduced and maintained by the Grml
530 team. Different kernel versions provide different squashfs file formats. Kernel
531 versions until 2.6.28-grml[64] used the 3.x file format but those outdated
532 kernels aren't supported by grml-live automatically anymore nowdays (manual
533 handling through SQUASHFS_BINARY possible though). Kernel versions
534 2.6.31-grml[64] and 2.6.33-grml[64] use openwrt's squashfs lzma file format
535 version 4. Kernel versions starting with 2.6.35-grml[64] use the mainline ondisk
536 file format version 4.
537
538 If you're wondering which package supports what, here's a short overview:
539
540 * squashfs-lzma-tools4 4.0-x: ZLIB as default, LZMA support via '-comp lzma'
541 option (enabled by grml-live by default), file format version 4 (mainline
542 version), package maintained and available from Grml, recommended for current
543 grml-live builds featuring kernels >=2.6.35-grml[64]
544
545 * squashfs-lzma-tools 4.0-2: ZLIB as default, LZMA support via '-lzma' option
546 (enabled by grml-live by default), file format version 4 (openwrt style),
547 package maintained and available from Grml, recommended for any grml-live builds
548 with kernel versions 2.6.31-grml[64] and 2.6.33-grml[64]
549
550 * squashfs-tools 1:4.0-x: ZLIB as default, no LZMA support/options, file format
551 version 4, package maintained and available from Debian, recommended only for
552 ZLIB-only builds of any grml-live builds with kernel versions >=2.6.31-grml[64]
553
554 Outdated, JFTR:
555
556 * squashfs-tools 1:3.3-7: ZLIB as default, no LZMA support/options, file format
557 version 3
558
559 * squashfs-tools 1:3.2r2-9exp1: LZMA as default, ZLIB support via '-nolzma'
560 option, file format version 3
561
562 * squashfs-lzma-tools 3.3-1: LZMA as default, ZLIB support via '-nolzma' option,
563 file format version 3
564
565 Now, depending on the kernel version you want to use you need different versions
566 of squashfs-tools/squashfs-lzma-tools[4]. Yes, that's a mess (don't ask how much
567 this sucks for us developers) - though we're putting lots of effort into our
568 toolchain to automatically handle this for you through the grml-live build
569 system and provide proper documentation. The situation is supposed to calm down
570 with the recent integration of the squashfs file format 4 in the mainline
571 kernel. Support for LZMA is pending and as soon as it's available mainline this
572 should dramatically simplify the situation for developers as well as users.
573
574 [TIP]
575 If you want to force usage of a specific mksquashfs binary just set the
576 SQUASHFS_BINARY configuration/environment variable. Set SQUASHFS_OPTIONS for
577 customizing the options that should be used by the mksquashfs binary during
578 build process.
579
580 Using squashfs-lzma-tools4 4.0-1 on the build system
581 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
582
583 squashfs-lzma-tools4 4.0-1 is available via the Grml repositories. It provides
584 the mksquashfs-lzma4 and unsquashfs-lzma4 binaries. The package does NOT
585 conflict with neither Debian's squashfs-tools package nor Grml's
586 squashfs-lzma-tools package, so you can install all of them at the same time and
587 the build system will try to figure out the best matching binary automatically
588 for you.
589
590 The packages can be downloaded from
591 link:http://deb.grml.org/pool/main/s/squashfs-lzma-tools4/[http://deb.grml.org/pool/main/s/squashfs-lzma-tools4/]
592
593 It provides support for the new squashfs file format version 4 (as available in
594 mainline, so *not* the one being used by squashfs-lzma-tools and kernel
595 2.6.33-grml) and therefore requires kernel versions starting with
596 2.6.35-grml[64]. It supports LZMA as well as ZLIB compression. Just use the
597 defaults for enabling LZMA or use grml-live's '-z' option if you want to use
598 ZLIB compression instead.
599
600 * Kernel 2.6.31-grml[64]: works with ZLIB compression, fails with LZMA
601 * Kernel 2.6.33-grml[64]: works with ZLIB compression, fails with LZMA
602 * Kernel 2.6.35-grml[64]: works with ZLIB *and* LZMA compression
603 * Kernel 2.6.36-grml[64]: works with ZLIB *and* LZMA compression
604
605 [NOTE]
606 squashfs-tools >=4.1-1 and/or squashfs-lzma-tools4 are the recommended package
607 for building up2date ISOs with grml-live! Please use other squashfs-* packages
608 only if you want to build live systems providing kernel versions older than
609 2.6.35-grml*. Use squashfs-tools >=4.1-1 or squashfs-lzma-tools4 from Grml if
610 you want to remaster any Grml releases MORE RECENT than 2010.04.
611
612 Using squashfs-lzma-tools 4.0-2 on the build system
613 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
614
615 squashfs-lzma-tools 4.0-2 is available via the Grml repositories. It provides
616 the mksquashfs-lzma and unsquashfs-lzma binaries. The package does NOT conflict
617 with Debian's squashfs-tools package (you can install both of them at the same
618 time).
619
620 The packages can be downloaded from
621 link:http://deb.grml.org/pool/main/s/squashfs-lzma-tools/[http://deb.grml.org/pool/main/s/squashfs-lzma-tools/]
622
623 It provides support for the new squashfs file format version 4 (based on openwrt
624 patches, this is *not* the mainline file format that's being used by kernel
625 2.6.35-grml and squashfs-lzma-tools4!) and therefore requires kernel versions
626 newer than 2.6.28-grml[64]. It supports LZMA as well as ZLIB compression. Just
627 use the defaults for enabling LZMA or use grml-live's '-z' option if you want to
628 use ZLIB instead.
629
630 * Kernel \<=2.6.28-grml[64]: does not work
631 * Kernel 2.6.31-grml[64]: works
632 * Kernel 2.6.33-grml[64]: works
633 * Kernel 2.6.35-grml[64]: works for ZLIB compression, fails for LZMA
634
635 [NOTE]
636 Please use squashfs-lzma-tools >=4.0-2 from Grml only if you want to remaster
637 Grml releases 2009.10 and 2010.04 or live systems with their according kernel
638 versions.
639
640 Using squashfs-tools 1:4.0-X on the build system
641 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
642
643 squashfs-tools >=1:4.0-1 is available in Debian/unstable and Debian/testing. It
644 provides the mksquashfs and unsquashfs binaries. The package does NOT conflict
645 neither with the squashfs-lzma-tools 4.0-2 package nor with the
646 squashfs-lzma-tools4 package (so you can install all of them at the same time).
647
648 The packages can be downloaded from
649 link:ftp://ftp.de.debian.org/debian/pool/main/s/squashfs-tools/[ftp://ftp.de.debian.org/debian/pool/main/s/squashfs-tools/]
650
651 It provides support for the new squashfs file format version 4 and therefore
652 requires kernel versions newer than 2.6.28-grml[64].
653
654 It does NOT support LZMA compression (dropped with
655 link:http://packages.debian.org/changelogs/pool/main/s/squashfs-tools/current/changelog[version
656 1:3.3-4] and not yet re-integrated yet, see
657 link:http://bugs.debian.org/594595[#594595]). If you need LZMA support please
658 use Grml's squashfs-lzma-tools[4] (see sections above) instead.
659
660 * Kernels \<=2.6.28-grml[64]: does not work
661 * Kernel 2.6.31-grml[64]: works (ZLIB only)
662 * Kernel 2.6.33-grml[64]: works (ZLIB only)
663 * Kernel 2.6.35-grml[64]: works (ZLIB only)
664 * Kernel 2.6.36-grml[64]: works (ZLIB only)
665
666 [NOTE]
667 Please use squashfs-tools between 4.0-1 and 4.1-1 only if you want to remaster
668 Grml releases starting with 2009.10 using the ZLIB compression, please use other
669 squashfs packages otherwise instead.
670
671 Outdated, JFTR:
672
673 Using squashfs-lzma-tools 3.3-1 on the build system
674 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
675
676 squashfs-lzma-tools 3.3-1 from the Grml repository supports kernel
677 2.6.26-grml[64] and 2.6.28-grml[64] using both LZMA and ZLIB (-nolzma)
678 compression.
679
680 The packages can be downloaded from
681 link:http://deb.grml.org/pool/main/s/squashfs-lzma/[http://deb.grml.org/pool/main/s/squashfs-lzma/].
682
683 [NOTE]
684 Please use squashfs-lzma-tools 3.3-1 only if you want to remaster Grml releases
685 2008.11 or 2009.05.
686
687 Using squashfs-tools 1:3.3-7 on the build system
688 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
689
690 squashfs-tools 1:3.3-7 is available through
691 http://grml.org/squashfs/squashfs-tools_3.3-7_i386.deb (for x86) or
692 http://grml.org/squashfs/squashfs-tools_3.3-7_amd64.deb (for amd64) [both build
693 on and for Debian/etch but working with testing and unstable as well].
694
695 Please notice that squashfs-tools 1:3.3-7 does NOT support LZMA compression at
696 all (so you won't be able to remaster release 2008.11 and 2009.05 using LZMA for
697 example). The -nolzma option of mksquashfs is not available therefore (even
698 though grml-live will deactivate it for you automatically anyway). Please use
699 squashfs-lzma-tools instead.
700
701 * Kernel 2.6.23-grml: does NOT work, please use squashfs-tools 1:3.2r2-9exp1
702                       instead if you still want to use kernel 2.6.23 (not
703                       recommended)
704 * Kernel 2.6.26-grml: works (without LZMA compression only of course!)
705 * Kernel 2.6.28-grml: works (without LZMA compression only of course!)
706
707 Using squashfs-tools 1:3.2r2-9exp1 on the build system
708 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
709
710 squashfs-tools 1:3.2r2-9exp1 is available via the grml-testing repository,
711 running:
712
713   # aptitude install squashfs-tools=1:3.2r2-9exp1
714
715 or directly via downloading the files
716 http://grml.org/squashfs/squashfs-tools_3.2r2-9exp1_i386.deb (for x86) or
717 http://grml.org/squashfs/squashfs-tools_3.2r2-9exp1_amd64.deb (for amd64).
718
719 Using with ZLIB compression (SQUASHFS_OPTIONS='-nolzma' or -z
720 option in grml-live cmdline):
721
722 * Kernel 2.6.23-grml: works
723 * Kernel 2.6.26-grml: works
724 * Kernel 2.6.28-grml: supposed to work (not verified though)
725
726 Using with LZMA compression:
727
728 * Kernel 2.6.23-grml: works
729 * Kernel 2.6.26-grml: does NOT work, please use ZLIB mode instead or switch
730   to Debian package squashfs-lzma-tools 3.3-1 (see section above).
731 * Kernel 2.6.28-grml: does NOT work, please use ZLIB mode instead or switch
732   to Debian package squashfs-lzma-tools 3.3-1 (see section above).
733 //////////////////////////////////////////////////////////////////////////////////
734
735 [[faq]]
736 FAQ
737 ---
738
739 [[deploy-on-debian]]
740 How do I deploy grml-live on a plain Debian installation?
741 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
742
743 The easiest way to get a running grml-live setup is to install Grml or
744 grml-medium using grml2hd (for example inside KVM, Virtualbox, VMware,... if you
745 don't want to run it on a physical system). Of course using grml-live on a
746 plain, original Debian installation is supported as well. So there we go.
747
748 What we have: plain, original Debian Lenny (5.0).
749
750 What we want: build a grml-medium ISO based on Debian/squeeze for the amd64
751 architecture using grml-live.
752
753 [IMPORTANT]
754
755 If you encounter any problems while booting the resulting ISO please be aware of
756 <<current_state,the 'current state of grml-live with squashfs-tools and kernel'
757 section>>.
758
759 Instructions
760 ^^^^^^^^^^^^
761
762   # adjust sources.list:
763   cat >> /etc/apt/sources.list << EOF
764
765   # grml stable repository:
766     deb     http://deb.grml.org/ grml-stable  main
767   # deb-src http://deb.grml.org/ grml-stable  main
768
769   # grml testing/development repository:
770     deb     http://deb.grml.org/ grml-testing main
771   # deb-src http://deb.grml.org/ grml-testing main
772   EOF
773
774   # adjust apt-pinning (only prefer squashfs stuff from grml):
775   cat >> /etc/apt/preferences << EOF
776   Package: *
777   Pin: origin deb.grml.org
778   Pin-Priority: 1
779
780   Package: squashfs-tools
781   Pin: origin deb.grml.org
782   Pin-Priority: 996
783   EOF
784
785   # get keyring for apt:
786   apt-get update
787   apt-get --allow-unauthenticated install grml-debian-keyring
788
789   # optionally(!) install basefile so we don't have to build basic
790   # chroot from scratch, grab from http://daily.grml.org/
791   # mkdir -p /etc/grml/fai/config/basefiles/
792   # mv base.tgz /etc/grml/fai/config/basefiles/I386.tar.gz
793   # mv base64.tgz /etc/grml/fai/config/basefiles/AMD64.tar.gz
794
795   # install relevant tools
796   # please check out http://grml.org/grml-live/#current_state when encountering problems!
797   apt-get -o APT::Install-Recommends=false install grml-live squashfs-tools
798
799   # adjust grml-live configuration for our needs:
800   cat > /etc/grml/grml-live.local << EOF
801   ## want a faster build process and don't need smaller ISOs?
802   ## if so use zlib compression
803   # SQUASHFS_OPTIONS="-comp gzip -b 256k"
804   ## want to use a specific squashfs binary?
805   # SQUASHFS_BINARY='/usr/bin/mksquashfs'
806   # install local files into the chroot
807   CHROOT_INSTALL="/etc/grml/fai/chroot_install"
808   ## adjust if necessary (defaults to /grml/grml-live):
809   ## OUTPUT="/srv/grml-live"
810   FAI_DEBOOTSTRAP="squeeze http://cdn.debian.net/debian/"
811   ARCH="i386"
812   CLASSES="GRMLBASE,GRML_MEDIUM,AMD64"
813   # PRESERVE_LOGFILE='1'
814   # ZERO_FAI_LOGFILE='1'
815   GRML_LIVE_SOURCES="
816   deb http://deb.grml.org/            grml-stable  main
817   deb http://deb.grml.org/            grml-testing main
818   deb http://cdn.debian.net/debian squeeze main contrib non-free
819   "
820   EOF
821
822   # just optional(!) - upgrade FAI to latest available version:
823   cat >> /etc/apt/sources.list << EOF
824   # fai:
825     deb http://fai-project.org/download lenny koeln
826   EOF
827
828   # get gpg key of FAI repos and install current FAI version:
829   gpg -a --recv-keys AB9B66FD; gpg -a --export AB9B66FD | apt-key add -
830   apt-get update
831   apt-get install fai-client fai-server fai-doc
832
833 That's it. Now invoking 'grml-live -V' should build the ISO.  If everything
834 worked as expected the last line of the shell output should look like:
835
836   [*] Successfully finished execution of grml-live [running 687 seconds]
837
838 and the ISO can be found inside /grml-live/grml-live/grml_isos/ then.
839
840 [[grml_fai_config_variable]]
841 What is $GRML_FAI_CONFIG?
842 ~~~~~~~~~~~~~~~~~~~~~~~~~
843
844 The variable '$GRML_FAI_CONFIG' is pointing to the directory /etc/grml/fai by
845 default.  To provide you a maximum of flexibility you can set up your own
846 configuration directory (e.g. based on /etc/grml/fai) and use this directory
847 running grml-live with the '-D <config_dir>' option. Now '$GRML_FAI_CONFIG'
848 points to the specified directory instead of using /etc/grml/fai and all the
849 configuration files, scripts and hooks will be taken from your
850 '$GRML_FAI_CONFIG' directory.
851
852 [[how-to-debug]]
853 I've problems with the build process. How to start debugging?
854 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
855
856 Check out the logs inside /var/log/fai/... If you think it's a bug in grml-live
857 send a copy of your config, logs and the commandline with a short problem
858 description to <mika@grml.org>:
859
860   # history | grep grml-live > /etc/grml/grml_live.cmdline
861   # tar zcf grml_live_problem.tar.gz /etc/grml/grml-live.conf \
862             /etc/grml/grml_live.cmdline /etc/grml/grml-buildd.conf \
863             /var/log/fai /etc/grml/fai
864   -> finally mail grml_live_problem.tar.gz to <mika@grml.org>
865
866 If you need help with grml-live or would like to see new features as part of
867 grml-live you can get commercial support via
868 link:http://grml-solutions.com/[Grml Solutions].
869
870 [[lzma-vs-zlib]]
871 How much is the difference between LZMA and ZLIB compression?
872 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
873
874 ISO size (bs = blocksize):
875
876 [width="45%",cols="3,^2,^2"]
877 |============================================================
878 |ISO                   |LZMA (256kB bs) |ZLIB
879 |grml_sid              |666M | 771M
880 |grml_squeeze          |659M | 761M
881 |grml_lenny            |624M | 723M
882 |grml64_sid            |677M | 791M
883 |grml64_squeeze        |671M | 785M
884 |grml64_lenny          |639M | 745M
885 |grml-medium_sid       |208M | 236M
886 |grml-medium_squeeze   |206M | 234M
887 |grml-medium_lenny     |193M | 220M
888 |grml64-medium_sid     |213M | 245M
889 |grml64-medium_squeeze |213M | 244M
890 |grml64-medium_lenny   |201M | 231M
891 |grml-small_sid        |102M | 118M
892 |grml-small_squeeze    |101M | 117M
893 |grml-small_lenny      |97M  | 112M
894 |grml64-small_sid      |103M | 120M
895 |grml64-small_squeeze  |103M | 120M
896 |grml64-small_lenny    |99M  | 116M
897 |============================================================
898
899 Build time of grml-medium's squashfs file (depends on your system, though just
900 to get the ratio between the different options):
901
902 * 10 minutes and 4 seconds with LZMA default blocksize (128k)
903 * 7 minutes 27 seconds with LZMA and blocksize 256k
904 * 6 minutes and 8 seconds with LZMA blocksize 512k
905 * 1 minute and 40 seconds with ZLIB
906
907 [[install-local-files]]
908 How do I install further files into the chroot/ISO?
909 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
910
911 Just point the configuration variable CHROOT_INSTALL to the directory which
912 provides the files you would like to install. Note that the files are installed
913 under '/' in the chroot - so you have to create the rootfs structure on your
914 own. Usage example:
915
916   echo "CHROOT_INSTALL=\$GRML_FAI_CONFIG/chroot_install" >> /etc/grml/grml-live.local
917   mkdir -p /etc/grml/fai/chroot_install/usr/src/
918   wget example.org/foo.tar.gz
919   mv foo.tar.gz /etc/grml/fai/chroot_install/usr/src/
920   grml-live ...
921
922 [[local-debian-mirror]]
923 Can I use my own (local) Debian mirror?
924 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
925
926 Yes. Set up an according sources.list configuration as class file in
927 ${GRML_FAI_CONFIG}/config/files/etc/apt/sources.list.d/ and adjust the variable
928 FAI_DEBOOTSTRAP (if not already using NFSROOT's base.tgz) inside
929 /etc/grml/grml-live.conf[.local]. If you're setting up your own class file don't
930 forget to include the class name in the class list (grml-live -c ...).
931
932 If you want to use a local (for example NFS mount) mirror additionally then
933 adjust MIRROR_DIRECTORY in /etc/grml/grml-live.conf[.local] as well.
934
935 If you want to use a HTTP Proxy (like apt-cacher-ng), set APT_PROXY. Example:
936
937   APT_PROXY="http://localhost:3142/"
938
939 [[add-additional-debian-packages]]
940 How do I add additional Debian package(s) to my CD/ISO?
941 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
942
943 Just create a new class (using the package_config directory):
944
945   # cat > /etc/grml/fai/config/package_config/MIKA << EOF
946   PACKAGES aptitude
947
948   vim
949   another_name_of_a_debian_package
950   and_another_one
951   EOF
952
953 and specify it when invoking grml-live then:
954
955   # grml-live -c GRMLBASE,GRML_SMALL,AMD64,MIKA
956
957 [[reset-grml-live-configuration]]
958 I fscked up my grml-live configuration. How do I reset it to the defaults?
959 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
960
961 Notice: this deletes all your grml-live configuration files. If that's really
962 what you are searching for just run:
963
964   rm -rf /etc/grml/fai /etc/grml/grml-live.conf
965   dpkg -i --force-confnew --force-confmiss /path/to/grml-live_..._all.deb
966
967 [NOTE]
968
969 If you don't control your /etc using a version control system (VCS) yet it's a
970 good chance to start using it now. Check out
971 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/]
972 for more details how to maintain /etc using the mercurial VCS.
973
974 [[create-a-base-tgz]]
975 How do I create a base.tgz for use as NFSROOT?
976 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
977
978 First of all build the chroot system:
979
980   mkdir /tmp/nfsroot && cd /tmp/nfsroot
981   debootstrap squeeze /tmp/nfsroot/ http://cdn.debian.net/debian
982   tar zcf base.tgz ./
983
984 Then check out where your NFSROOT is located:
985
986   # grep '^NFSROOT' /etc/grml/fai/make-fai-nfsroot.conf
987   NFSROOT=/grml/fai/nfsroot
988
989 So as /grml/fai/nfsroot is your NFSROOT place the file under
990 /grml/fai/nfsroot/live/filesystem.dir/var/tmp/:
991
992   mv base.tgz /grml/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz
993
994 or even better use /etc/grml/fai/config/basefiles/$CLASSNAME.tar.gz instead.
995 Use I386 as $CLASSNAME for i386 builds and AMD64 for amd64 builds.
996
997 Now running "grml-live ..." will use this file as main system instead of
998 executing debootstrap. Check out the output for the following lines if using
999 NFSROOT:
1000
1001   [...]
1002   Calling task_extrbase
1003   Unpacking Debian base archive
1004   Extracting /grml/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz
1005   Calling task_mirror
1006   [...]
1007
1008 or if using /etc/grml/fai/config/basefiles/$CLASSNAME.tar.gz for:
1009
1010   [...]
1011   ftar: extracting /etc/grml/fai/config/basefiles///AMD64.tar.gz to
1012   /grml-live/grml-live_20071029.22138/grml_chroot//
1013   [...]
1014
1015 [TIP]
1016 Existing base.tgz can be found at http://daily.grml.org/
1017
1018 [[apt-cacher]]
1019 Set up apt-cacher-ng for use with grml-live
1020 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1021
1022 Make sure /etc/grml/grml-live.local provides according APT_PROXY and
1023 FAI_DEBOOTSTRAP:
1024
1025   # cat /etc/grml/grml-live.local
1026   [...]
1027   APT_PROXY="http://localhost:3142/"
1028   [...]
1029   FAI_DEBOOTSTRAP="squeeze http://localhost:3142/cdn.debian.net/debian squeeze main contrib non-free"
1030
1031 Make sure apt-cacher-ng is running ('/etc/init.d/apt-cacher-ng restart').
1032 That's it.  All downloaded files will be cached in /var/cache/apt-cacher-ng then.
1033
1034 [[approx]]
1035 Set up approx for use with grml-live
1036 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1037
1038 Make sure /etc/grml/grml-live.conf provides according GRML_LIVE_SOURCES and
1039 FAI_DEBOOTSTRAP:
1040
1041   # cat /etc/grml/grml-live.conf
1042   [...]
1043   GRML_LIVE_SOURCES="
1044   deb http://localhost:9999/grml            grml-stable  main
1045   deb http://localhost:9999/grml            grml-testing main
1046   deb http://localhost:9999/debian squeeze  main contrib non-free
1047   "
1048   FAI_DEBOOTSTRAP="squeeze http://localhost:9999/debian"
1049
1050 Configure approx:
1051
1052   # cat /etc/approx/approx.conf
1053   [...]
1054   debian http://ftp.at.debian.org/debian
1055   grml   http://deb.grml.org/
1056
1057 Don't forget to restart approx (/etc/init.d/approx restart). That's it.
1058 All downloaded files will be cached in /var/cache/approx now.
1059
1060 [[revert_manifold]]
1061 How do I revert the manifold feature from an ISO?
1062 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1063
1064 The so called manifold feature Grml ISOs use by default allows one to use the same
1065 ISO for CD boot and USB boot. If you notice any problems when booting just
1066 revert the manifold feature running:
1067
1068   % dd if=/dev/zero of=grml.iso bs=512 count=1 conv=notrunc
1069
1070 To switch from manifold to isohybrid mode (an alternative approach provided by
1071 syslinux) then just execute:
1072
1073   % isohybrid grml.iso
1074
1075 [[basetgz]]
1076 How do I create a base tar.gz (I386.tar.gz or AMD64.tar.gz)
1077 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1078
1079 Execute the following commands (requires root):
1080
1081   ARCH='amd64' # replace with i386 if necessary
1082   SUITE='squeeze' # using the current stable release should always work
1083   debootstrap --arch "$ARCH" --exclude=info,tasksel,tasksel-data "$SUITE" "$ARCH" http://debian.netcologne.de/debian
1084   cd "$ARCH"
1085   rm var/cache/apt/archives/*.deb
1086   tar zcf ../"${ARCH}".tar.gz *
1087
1088 And finally place the generated tarball in /etc/grml/fai/config/basefiles/ (note
1089 that it needs to be uppercase letters matching the class names, so: AMD64.tar.gz
1090 for amd64 and I386.tar.gz for i386).
1091
1092 [[autobuild]]
1093 How do I set up an autobuild environment?
1094 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1095
1096 If you want to set up a system like link:http://daily.grml.org/[daily.grml.org]
1097 the Debian package grml-live-buildd provides all you need to start. Start with
1098 figuring out the cron job script /usr/share/grml-live/buildd/cronjob.sh.
1099
1100 If you want to automatically update the grml-live Debian package on your build
1101 system based on the git tree of grml-live (so you get bleeding edge of
1102 development which might is interesting for services like daily.grml.org) the
1103 provided release_helper.sh script provides everything you need. Execute as root:
1104
1105   echo "deb file:/home/grml-live-git/grml-live.build-area/ ./" >> /etc/apt/sources.list.d/grml-live.list
1106   adduser --disabled-login --disabled-password grml-live-git
1107
1108 Execute 'visudo' to update sudo configuration and add the following line:
1109
1110   grml-live-git ALL=NOPASSWD: /usr/bin/apt-get
1111
1112 Switch to user grml-live-git and configure the rest:
1113
1114   su - grml-live-git
1115   mkdir grml-live.build-area
1116   git clone git://git.grml.org/grml-live.git
1117   git config --global user.name "Grml-Live Git Autobuild"
1118   git config --global user.email "grml-live-git@$(hostname)"
1119
1120 Finally install a cron job (as user grml-live-git) like:
1121
1122   30 00 * * * cd /home/grml-live-git/grml-live.git/ && env AUTOBUILD=1 scripts/release_helper.sh >/home/grml-live-git/grml-live-build.log
1123
1124 Tip: To find out the build date of the installed grml-live package just execute:
1125
1126   % apt-cache policy grml-live | grep 'Installed.*autobuild'
1127    Installed: 0.13.1~autobuild1300450381
1128
1129 and run "date -ud @$STRING" where $STRING is the number behind the "autobuild",
1130 like:
1131
1132   % date -ud @1300450081
1133   Fri Mar 18 12:08:01 UTC 2011
1134
1135 [[question]]
1136 I've a question which isn't answered by this document
1137 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1138
1139 Don't hesitate to contact the author: <mika@grml.org>
1140
1141 [[download]]
1142 Download / install grml-live as a Debian package
1143 ------------------------------------------------
1144
1145 Debian packages are available through the grml-repository at
1146 link:http://deb.grml.org/pool/main/g/grml-live/[deb.grml.org].  If you want to
1147 build a Debian package on your own (using for example a specific version or the
1148 current development tree), just execute:
1149
1150   git clone git://git.grml.org/grml-live
1151   cd grml-live
1152   debuild -us -uc
1153
1154 [[source]]
1155 Source
1156 ------
1157
1158 The source of grml-live is available at
1159 link:http://git.grml.org/?p=grml-live.git[http://git.grml.org/?p=grml-live.git]
1160
1161 [[todo-list]]
1162 TODO list
1163 ---------
1164
1165 Check out the link:http://git.grml.org/?p=grml-live.git;a=blob;f=TODO;hb=HEAD[TODO file].
1166
1167 [[bugs]]
1168 Bugs
1169 ----
1170
1171 Please report feedback, link:http://grml.org/bugs/[bugreports] and wishes
1172 link:http://grml.org/contact/[to the grml-team]!
1173
1174 [[documentation]]
1175 Documentation
1176 -------------
1177
1178 The most recent grml-live documentation is available online at
1179 http://grml.org/grml-live/ and for offline reading also available
1180 in different formats:
1181
1182 * http://grml.org/grml-live/grml-live.epub
1183 * http://grml.org/grml-live/grml-live.pdf
1184
1185 [[authors]]
1186 Authors
1187 -------
1188 Michael Prokop <mika@grml.org>
1189
1190 /////////////////////////////////////
1191 // vim:ai tw=80 ft=asciidoc expandtab
1192 /////////////////////////////////////