1
<?xml version="1.0" encoding="utf-8"?>
2
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4
<!ENTITY % commondata SYSTEM "common.ent" > %commondata;
7
<title>Customising the bootup process</title>
9
<para>This chapter discusses customisation of bootup process of a live system, including kernel options, modifications to the bootloader, "splash" screens and startup scripts.</para>
17
<sect2 id="bootloaders">
18
<title>Bootloaders</title>
24
<title>Choosing a bootloader</title>
31
<title>Syslinux</title>
32
<para>In the default configuration, Syslinux will pause indefinitely at its splash screen. To adjust this, modify the <command>LH_SYSLINUX_TIMEOUT</command> value or pass <command>--syslinux-timeout <replaceable>TIMEOUT</replaceable></command> to <filename>lh_config</filename>. The value is specified in units of 1/10s and the maximum possible timeout is 35996. A timeout of 0 (zero) disables the timeout completely. For more information please see syslinux(1).</para>
36
<title>Bootloader templates</title>
43
<title>Booting a Debian Live USB/HDD system from a USB stick with Grub</title>
45
Suppose you've built your Debian Live USB/HDD image, but want to
46
install it on an already used USB stick with ext2/3 partition and Grub
50
<para>First, copy live components in a directory on your key: the
51
Linux kernel (<filename>vmlinuz*</filename>), its Initial RAM disk
52
(<filename>initrd*</filename>) and the system
53
(<filename>filesystem.squashfs</filename>):
55
# mkdir /media/myUsb/boot/live/
56
# cp binary/vmlinuz1 binary/initrd1.img binary/live/filesystem.squashfs /media/myUsb/boot/live/
60
<para>Then, add a stanza in Grub's menu definition to boot up this
63
echo >>/media/myUsb/boot/grub/menu.lst <<EOF
66
root (hd0,1) # my Ext2 partition is the second on this stick
67
kernel /boot/live/vmlinuz1 boot=live vga=791 persistent union=aufs live-media-path=boot/live
68
initrd /boot/live/initrd1.img
72
The important kernel command line option to add here
73
is <variablename>live-media-path</variablename>, which tells to Live
74
initrd's script in which subdirectory to look for the SquashFS image.
77
<para>Next, umount your USB stick and reboot on it. That's all!</para>
83
<title>Splash screens</title>
90
<title>Memtest</title>
96
<sect2 id="startup-scripts">
97
<title>Startup scripts</title>
103
<sect2 id="cheat-codes">
104
<title>Cheat codes</title>