Renaming /live/cow to /live/overlay in anticipation of overlayfs.
[live-boot-grml.git] / manpages / en / live-boot.7
1 .TH LIVE\-BOOT 7 2012\-04\-08 3.0~a26-1 "Debian Live Project"
2
3 .SH NAME
4 \fBlive\-boot\fR \- System Boot Scripts
5
6 .SH DESCRIPTION
7 \fBlive\-boot\fR contains the scripts that configure a Debian Live system during the boot process (early userspace).
8 .PP
9 .\" FIXME
10 live\-boot is a hook for the initramfs\-tools, used to generate a initramfs capable to boot live systems, such as those created by \fIlive\-helper\fR(7). This includes the Debian Live isos, netboot tarballs, and usb stick images.
11 .PP
12 At boot time it will look for a (read\-only) media containing a "/live" directory where a root filesystems (often a compressed filesystem image like squashfs) is stored. If found, it will create a writable environment, using aufs, for Debian like systems to boot from.
13 .\" FIXME
14
15 .SH CONFIGURATION
16 \fBlive\-boot\fR can be configured through a boot parameter or a configuration file.
17 .PP
18 To configure the live\-boot parameters used by default in a live image, see the \-\-bootappend\-live option in the \fIlb_config\fR(1) manual page.
19
20 .SS Kernel Parameters
21 \fBlive\-boot\fR is only activated if 'boot=live' was used as a kernel parameter.
22 .PP
23 In addition, there are some more boot parameters to influence the behaviour, see below.
24
25 .SS Configuration Files
26 \fBlive\-boot\fR can be configured (but not activated) through configuration files. Those files can be placed either in the root filesystem itself (/etc/live/boot.conf, /etc/live/boot.d/*.conf), or on the live media (live/boot.conf, live/boot.d/*.conf).
27
28 .SH OPTIONS
29 \fBlive\-boot\fR currently features the following parameters.
30 .\" FIXME
31 .IP "\fBaccess\fR=\fIACCESS\fR" 4
32 Set the accessibility level for physically or visually impared users. ACCESS must be one of v1, v2, v3, m1, or m2. v1=lesser visual impairment, v2=moderate visual impairment, v3=blindness, m1=minor motor difficulties, m2=moderate motor difficulties.
33 .IP "\fBconsole\fR=\fITTY,SPEED\fR" 4
34 Set the default console to be used with the "live\-getty" option. Example: "console=ttyS0,115200"
35 .IP "\fBdebug\fR" 4
36 Makes initramfs boot process more verbose.
37 .br
38 Use: debug=1
39 .br
40 Without setting debug to a value the messages may not be shown.
41 .IP "\fBfetch\fR=\fIURL\fR" 4
42 .IP "\fBhttpfs\fR=\fIURL\fR" 4
43 Another form of netboot by downloading a squashfs image from a given url.
44 The fetch method copies the image to ram and the httpfs method uses fuse and
45 httpfs2 to mount the image in place. Copying to ram requires more memory and
46 might take a long time for large images. However, it is more likely to work
47 correctly because it does not require networking afterwards and the system
48 operates faster once booted because it does not require to contact the server
49 anymore.
50 .br
51 Due to current limitations in busyboxs wget and DNS resolution, an URL can not contain a hostname but an IP only.
52 .br
53 Not working: http://example.com/path/to/your_filesystem.squashfs
54 .br
55 Working: http://1.2.3.4/path/to/your_filesystem.squashfs
56 .br
57 Also note that therefore it's currently not possible to fetch an image from a namebased virtualhost of an httpd if it is sharing the ip with the main httpd instance.
58 .br
59 You may also use the live iso image in place of the squashfs image.
60 .IP "\fBiscsi\fR=\fIserver-ip[,server-port];target-name\fR" 4
61 Boot from an iSCSI target that has an iso or disk live image as one of its LUNs. The specified target is searched for a LUN which looks like a live media. If you use the \fBiscsitarget\fR software iSCSI target solution which is packaged in Debian your ietd.conf might look like this:
62 .br
63 # The target-name you specify in the iscsi= parameter
64 .br
65 Target <target-name>
66   Lun 0 Path=<path-to-your-live-image.iso>,Type=fileio,IOMode=ro
67   # If you want to boot multiple machines you might want to look at tuning some parameters like
68   # Wthreads or MaxConnections
69 .IP "\fBfromiso\fR=\fI/PATH/TO/IMAGE\fI" 4
70 Allows to use a filesystem from within an iso image that's available on live-media.
71 .IP "\fBignore_uuid\fR" 4
72 Do not check that any UUID embedded in the initramfs matches the discovered medium. live\-boot may be told to generate a UUID by setting LIVE_GENERATE_UUID=1 when building the initramfs.
73 .IP "\fBintegrity\-check\fR" 4
74 If specified, an MD5 sum is calculated on the live media during boot and compared to the value found in md5sum.txt found in the root directory of the live media.
75 .IP "\fBip\fR=[\fIDEVICE\fR]:[\fICLIENT_IP\fR]:[\fISERVER_IP\fR]:[\fIGATEWAY_IP\fR]:[\fINETMASK\fR]:[\fIHOSTNAME\fR]:[\fIAUTOCONF\fR] [,[\fIDEVICE\fR]:[\fICLIENT_IP\fR]:[\fISERVER_IP\fR]:[\fIGATEWAY_IP\fR]:[\fINETMASK\fR]:[\fIHOSTNAME\fR]:[\fIAUTOCONF\fR]]" 4
76 Let you specify the name(s) and the options of the interface(s) that should be configured at boot time. Do not specify this if you want to use dhcp (default). It will be changed in a future release to mimick official kernel boot param specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).
77 .IP "\fBip\fR=[\fIfrommedia\fR]" 4
78 If this variable is set, dhcp and static configuration are just skipped and the system will use the (must be) media\-preconfigured /etc/network/interfaces instead.
79 .IP "{\fBlive\-media\fR|\fBbootfrom\fR}=\fIDEVICE\fR" 4
80 If you specify one of this two equivalent forms, live\-boot will first try to find this device for the "/live" directory where the read\-only root filesystem should reside. If it did not find something usable, the normal scan for block devices is performed.
81 .br
82 Instead of specifing an actual device name, the keyword 'removable' can be used to limit the search of acceptable live media to removable type only. Note that if you want to further restrict the media to usb mass storage only, you can use the 'removable\-usb' keyword.
83 .IP "{\fBlive\-media\-encryption\fR|\fBencryption\fR}=\fITYPE\fI" 4
84 live\-boot will mount the encrypted rootfs TYPE, asking the passphrase, useful to build paranoid live systems :\-). TYPE supported so far are "aes" for loop\-aes encryption type.
85 .IP "\fBlive\-media\-offset\fR=\fIBYTES\fR" 4
86 This way you could tell live\-boot that your image starts at offset BYTES in the above specified or autodiscovered device, this could be useful to hide the Debian Live iso or image inside another iso or image, to create "clean" images.
87 .IP "\fBlive\-media\-path\fR=\fIPATH\fR" 4
88 Sets the path to the live filesystem on the medium. By default, it is set to '/live' and you should not change that unless you have customized your media accordingly.
89 .IP "\fBlive\-media\-timeout\fR=\fISECONDS\fI" 4
90 Set the timeout in seconds for the device specified by "live\-media=" to become ready before giving up.
91 .IP "\fBmodule\fR=\fINAME\fR" 4
92 Instead of using the default optional file "filesystem.module" (see below) another file could be specified without the extension ".module"; it should be placed on "/live" directory of the live medium.
93 .IP "\fBnetboot\fR[=nfs|cifs]" 4
94 This tells live\-boot to perform a network mount. The parameter "nfsroot=" (with optional "nfsopts="), should specify where is the location of the root filesystem.  With no args, will try cifs first, and if it fails nfs.
95 .IP "\fBnfsopts\fR=" 4
96 This lets you specify custom nfs options.
97 .IP "\fBnofastboot\fR" 4
98 This parameter disables the default disabling of filesystem checks in /etc/fstab. If you have static filesystems on your harddisk and you want them to be checked at boot time, use this parameter, otherwise they are skipped.
99 .IP "\fBnopersistent\fR" 4
100 disables the "persistent" feature, useful if the bootloader (like syslinux) has been installed with persistent enabled.
101 .IP "\fBnoprompt\fR" 4
102 Do not prompt to eject the CD or remove the USB flash drive on reboot.
103 .IP "\fBnoprompt\fR=\fITYPE\fR" 4
104 This tells live-boot not to prompt to eject the CD (when noprompt=cd) or remove the USB flash drive (when noprompt=usb) on reboot.
105 .IP "\fBramdisk\-size\fR" 4
106 This parameters allows to set a custom ramdisk size (it's the '\-o size' option of tmpfs mount). By default, there is no ramdisk size set, so the default of mount applies (currently 50% of available RAM). Note that this option has no currently no effect when booting with toram.
107 .IP "\fBswapon\fR" 4
108 This parameter enables usage of local swap partitions.
109 .IP "\fBpersistent\fR" 4
110 live\-boot will probe devices for persistent media. These can be partitions (with the correct GPT name), filesystems (with the correct label) or image/archive files (with the correct file name). Overlays are labeled/named either "full\-ov", which will be mounted on /, or "custom\-ov", which can be completely customized (see \fIlive.persist\fR(5)); snapshots are labeled/named either "live\-sn" or "home\-sn" and will be extracted into / or /home, respectively (see \fIlive\-snapshot\fR(1) for more information). The order these are handled are: full\-ov, custom\-ov, live-sn, home-sn. Overlay image files and snapshot archive files have extensions which determines their filesystem or archive type, e.g. "custom\-ov.ext4" and "\home\-sn.squashfs".
111 .IP "\fBpersistent\-encryption\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
112 This option determines which types of encryption that we allow to be used when probing devices for persistent media. If "none" is in the list, we allow unencrypted media; if "luks" is in the list, we allow LUKS\-encrypted media. Whenever a device containing encrypted media is probed the user will be prompted for the passphrase. The default value is "none".
113 .IP "\fBpersistent\-media\fR={\fIremovable\fR|\fIremovable\-usb\fR}" 4
114 If you specify the keyword 'removable', live\-boot will try to find persistent and snapshot partitions on removable media only. Note that if you want to further restrict the media to usb mass storage only, you can use the 'removable\-usb' keyword.
115 .IP "\fBpersistent\-method\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
116 This option determines which types of persistent media we allow. If "overlay" is in the list, we consider overlays (i.e. "live\-rw" and "home\-rw"); if "snapshot" is in the list, we consider snapshots (i.e. "live\-sn" and "home\-sn"). The default is "overlay,snapshot".
117 .IP "\fBpersistent\-path\fR=\fIPATH\fR" 4
118 live\-boot will look for persistency files in the root directory of a partition, with this parameter, the path can be configured so that you can have multiple directories on the same partition to store persistency files.
119 .IP "\fBpersistent\-read\-only\fR" 4
120 Filesystem changes are not saved back to persistent media. In particular, overlays and netboot NFS mounts are mounted read-only, and snapshots are not resynced on shutdown.
121 .IP "\fBpersistent\-storage\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
122 This option determines which types of persistent storage to consider when probing for persistent media. If "filesystem" is in the list, filesystems with matching labels will be used; if "file" is in the list, all filesystems will be probed for archives and image files with matching filenames. The default is "file,filesystem".
123 .IP "\fBpersistent\-subtext\fR=\fISUFFIX\fR" 4
124 Add a suffix when searching for the image filenames or partition labels to use for the above mentioned persistent feature, the SUFFIX will be added after a dash (e.g.: "live-sn" would transform to "live-sn-SUFFIX"). This is handy to test multiple live-boot based live-systems with different persistent storage choices.
125 .IP "\fBquickreboot\fR" 4
126 This option causes live\-boot to reboot without attempting to eject the media and without asking the user to remove the boot media.
127 .IP "\fBshowmounts\fR" 4
128 This parameter will make live\-boot to show on "/" the ro filesystems (mostly compressed) on "/live". This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation.
129 .IP "\fBsilent\fR" 4
130 If you boot with the normal quiet parameter, live\-boot hides most messages of its own. When adding silent, it hides all.
131 .IP "\fBtodisk\fR=\fIDEVICE\fR" 4
132 Adding this parameter, live\-boot will try to copy the entire read\-only media to the specified device before mounting the root filesystem. It probably needs a lot of free space. Subsequent boots should then skip this step and just specify the "live\-media=DEVICE" boot parameter with the same DEVICE used this time.
133 .IP "\fBtoram\fR" 4
134 Adding this parameter, live\-boot will try to copy the whole read\-only media to the computer's RAM before mounting the root filesystem. This could need a lot of ram, according to the space used by the read\-only media.
135 .IP "\fBunion\fR=aufs|unionfs\fR" 4
136 By default, live\-boot uses aufs. With this parameter, you can switch to unionfs.
137 .\" FIXME
138
139 .\" FIXME
140 .SH FILES (old)
141 .IP "\fB/etc/live.conf\fR" 4
142 Some variables can be configured via this config file (inside the live system).
143 .IP "\fBlive/filesystem.module\fR" 4
144 This optional file (inside the live media) contains a list of white\-space or carriage\-return\-separated file names corresponding to disk images in the "/live" directory. If this file exists, only images listed here will be merged into the root aufs, and they will be loaded in the order listed here. The first entry in this file will be the "lowest" point in the aufs, and the last file in this list will be on the "top" of the aufs, directly below /overlay.  Without this file, any images in the "/live" directory are loaded in alphanumeric order.
145 .IP "\fB/etc/live\-persistence.binds\fR" 4
146 This optional file (which resides in the rootfs system, not in the live media) is used as a list of directories which not need be persistent: ie. their content does not need to survive reboots when using the persistence features.
147 .br
148 This saves expensive writes and speeds up operations on volatile data such as web caches and temporary files (like e.g. /tmp and .mozilla) which are regenerated each time. This is achieved by bind mounting each listed directory with a tmpfs on the original path.
149 .\" FIXME
150
151 .SH FILES
152 .IP "\fB/etc/live/boot.conf\fR" 4
153 .IP "\fB/etc/live/boot.d/*.conf\fR" 4
154 .IP "\fBlive/boot.conf\fR" 4
155 .IP "\fBlive/boot.d/*.conf\fR" 4
156 .IP "\fBlive.persist\fR" 4
157
158 .SH SEE ALSO
159 \fIlive\-snapshot\fR(1)
160 .PP
161 \fIlive.persist\fR(5)
162 .PP
163 \fIlive\-build\fR(7)
164 .PP
165 \fIlive\-config\fR(7)
166 .PP
167 \fIlive\-tools\fR(7)
168
169 .SH HOMEPAGE
170 More information about live\-boot and the Debian Live project can be found on the homepage at <\fIhttp://live.debian.net/\fR> and in the manual at <\fIhttp://live.debian.net/manual/\fR>.
171
172 .SH BUGS
173 Bugs can be reported by submitting a bugreport for the live\-boot package in the Debian Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Debian Live mailing list at <\fIdebian-live@lists.debian.org\fR>.
174
175 .SH AUTHOR
176 live\-boot was written by Daniel Baumann <\fIdaniel@debian.org\fR> for the Debian project.