Debian Codegraph @

manpages/en/live-boot.7

raw
1 .TH LIVE\-BOOT 7 2015\-09\-22 5.0~a5-1 "Debian Live Project"
2
3 .SH NAME
4 \fBlive\-boot\fR \- System Boot Components
5
6 .SH DESCRIPTION
7 \fBlive\-boot\fR contains the components that configure a 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 Live systems ISOs, netboot tarballs, and usb stick images.
11 .PP
12 At boot time it will look for a (read\-only) medium 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, to boot the system 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/*), or on the live media (live/boot.conf, live/boot/*).
27 These environment variables can only be set in the configuration files:
28
29 .TP
30 \fBDISABLE_CDROM\fR=[\fItrue\fR|\fIfalse\fR]
31 Disable support for booting from CD-ROMs. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel modules for reading CD-ROMs.
32
33 .TP
34 \fBDISABLE_DM_VERITY\fR=[\fItrue\fR|\fIfalse\fR]
35 Disable support for dm-verity. If set to true \fItrue\fR' mkinitramfs will build an initramfs without the kernel module dm-verity and some other dm modules. Also the default mount binary is used instead of the util-linux one.
36
37 .TP
38 \fBDISABLE_FAT\fR=[\fItrue\fR|\fIfalse\fR]
39 Disable support for booting from FAT file systems. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel module vfat and some nls_* modules.
40
41 .TP
42 \fBDISABLE_EXFAT\fR=[\fItrue\fR|\fIfalse\fR]
43 Disable support for booting from exFAT file systems. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel module exfat.
44
45 .TP
46 \fBDISABLE_FUSE\fR=[\fItrue\fR|\fIfalse\fR]
47 Disable support for booting from FUSE-based file systems. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel module fuse and file systems that depend on it (like curlftpfs and httpfs2).
48
49 .TP
50 \fBDISABLE_NTFS\fR=[\fItrue\fR|\fIfalse\fR]
51 Disable support for booting from NTFS file systems. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel module ntfs.
52
53 .TP
54 \fBDISABLE_USB\fR=[\fItrue\fR|\fIfalse\fR]
55 Disable support for booting from USB devices. If set to '\fItrue\fR' mkinitramfs will build an initramfs without the kernel module sd_mod.
56
57 .TP
58 \fBMINIMAL\fR=[\fItrue\fR|\fIfalse\fR]
59 Build a minimal initramfs. If set to '\fItrue\fR' mkinitramfs will build an initramfs without some udev scripts and without rsync.
60
61 .TP
62 \fBPERSISTENCE_FSCK\fR=[\fItrue\fR|\fIfalse\fR]
63 Run fsck on persistence filesystem on boot. Will attempt to repair errors. The execution log will be saved in /var/log/live/fsck.log.
64
65 .TP
66 \fBFSCKFIX\fR=[\fItrue\fR|\fIfalse\fR]
67 If PERSISTENCE_FSCK or forcefsck are set, will pass -y to fsck to stop it from asking questions interactively and assume yes to all queries.
68
69 .SH OPTIONS
70 \fBlive\-boot\fR currently features the following parameters.
71 .\" FIXME
72 .IP "\fBaccess\fR=\fIACCESS\fR" 4
73 Set the accessibility level for physically or visually impaired 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.
74 .IP "\fBconsole\fR=\fITTY,SPEED\fR" 4
75 Set the default console to be used with the "live\-getty" option. Example: "console=ttyS0,115200"
76 .IP "\fBdebug\fR" 4
77 Makes initramfs boot process more verbose.
78 .br
79 Use: debug=1
80 .br
81 Without setting debug to a value the messages may not be shown.
82 .IP "\fBfetch\fR=\fIURL\fR" 4
83 .IP "\fBhttpfs\fR=\fIURL\fR" 4
84 Another form of netboot by downloading a squashfs image from a given URL.
85 The fetch method copies the image to RAM and the httpfs method uses FUSE and
86 httpfs2 to mount the image in place. Copying to RAM requires more memory and
87 might take a long time for large images. However, it is more likely to work
88 correctly because it does not require networking afterwards and the system
89 operates faster once booted because it does not require to contact the server
90 anymore.
91 .br
92 Due to current limitations in busybox's wget and DNS resolution, an URL can not contain a hostname but an IP address only.
93 .br
94 Not working: http://example.com/path/to/your_filesystem.squashfs
95 .br
96 Working: http://1.2.3.4/path/to/your_filesystem.squashfs
97 .br
98 Also note that therefore it's currently not possible to fetch an image from a name-based virtualhost of an httpd if it is sharing the IP address with the main httpd instance.
99 .br
100 You may also use the live ISO image in place of the squashfs image.
101 .IP "\fBiscsi\fR=\fIserver-ip[,server-port];target-name\fR" 4
102 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 medium. If you use the \fBiscsitarget\fR software iSCSI target solution your ietd.conf might look like this:
103 .br
104 # The target-name you specify in the iscsi= parameter
105 .br
106 Target <target-name>
107 Lun 0 Path=<path-to-your-live-image.iso>,Type=fileio,IOMode=ro
108 # If you want to boot multiple machines you might want to look at tuning some parameters like
109 # Wthreads or MaxConnections
110 .IP "\fBfindiso\fR=\fI/PATH/TO/IMAGE\fI" 4
111 Look for the specified ISO file on all disks where it usually looks for the .squashfs file (so you don't have to know the device name as in fromiso=....).
112 .IP "\fBforcefsck\fR" 4
113 Run fsck on persistence filesystem on boot. Will attempt to repair errors. The execution log will be saved in /var/log/live/fsck.log.
114 .IP "\fBfromiso\fR=\fI/PATH/TO/IMAGE\fI" 4
115 Use a filesystem from within an ISO image that's available on live-media. The first part of the argument should be the block device where the image is stored, followed by the path and filename (e.g. fromiso=/dev/sda1/live/image.iso).
116 .br
117 Alternatively, it can be used to boot from an ISO embedded into an initrd (e.g. fromiso=/live/image.iso).
118 .IP "\fBignore_uuid\fR" 4
119 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.
120 .IP "\fBverify\-checksums\fR" 4
121 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.
122 .IP "\fBip\fR=[\fIDEVICE\fR]:[\fICLIENT_IP\fR]:[\fINETMASK\fR]:[\fIGATEWAY_IP\fR]:[\fINAMESERVER\fR] [,[\fIDEVICE\fR]:[\fICLIENT_IP\fR]:[\fINETMASK\fR]:[\fIGATEWAY_IP\fR]:[\fINAMESERVER\fR]]" 4
123 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 mimic official kernel boot param specification (e.g. ip=10.0.0.1::10.0.0.254:255.255.255.0::eth0,:::::eth1:dhcp).
124 .IP "\fBip\fR=[\fIfrommedia\fR]" 4
125 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.
126 .IP "{\fBlive\-media\fR|\fBbootfrom\fR}=\fIDEVICE\fR" 4
127 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.
128 .br
129 Instead of specifying 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.
130 .IP "\fBlive\-media\-offset\fR=\fIBYTES\fR" 4
131 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 live system ISO or image inside another ISO or image, to create "clean" images.
132 .IP "\fBlive\-media\-path\fR=\fIPATH\fR" 4
133 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.
134 .IP "\fBlive\-media\-timeout\fR=\fISECONDS\fI" 4
135 Set the timeout in seconds for the device specified by "live\-media=" to become ready before giving up.
136 .IP "\fBmodule\fR=\fINAME\fR" 4
137 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.
138 .IP "\fBnetboot\fR[=nfs|cifs]" 4
139 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.
140 .IP "\fBnfsopts\fR=" 4
141 This lets you specify custom nfs options.
142 .IP "\fBnofastboot\fR" 4
143 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.
144 .IP "\fBnopersistence\fR" 4
145 disables the "persistence" feature, useful if the bootloader (like syslinux) has been installed with persistence enabled.
146 .IP "\fBnoeject\fR" 4
147 Do not prompt to eject the live medium.
148 .IP "\fBramdisk\-size\fR" 4
149 This parameter defines 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 currently no effect when booting with toram.
150 .IP "\fBoverlay\-size\fR=\fISIZE\fR" 4
151 The size of the tmpfs mount (used for the upperdir union root mount) in bytes, and rounded up to entire pages. This option accepts a suffix % to limit the instance to that percentage of your physical RAM or a suffix k, m or g for Ki, Mi, Gi (binary kilo (kibi), binary mega (mebi) and binary giga (gibi)). By default, 50% of available RAM will be used.
152 .IP "\fBswap=true\fR" 4
153 This parameter enables usage of local swap partitions.
154 .IP "\fBpersistence\fR" 4
155 live\-boot will probe devices for persistence media. These can be partitions (with the correct GPT name), filesystems (with the correct label) or image files (with the correct file name). Overlays are labeled/named "persistence" (see \fIpersistence.conf\fR(5)). Overlay image files are named "persistence".
156 .IP "\fBpersistence\-encryption\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
157 This option determines which types of encryption that are allowed to be used when probing devices for persistence media. If "none" is in the list, we allow unencrypted media; if "luks" is in the list, we allow LUKS\-encrypted media and if "lukslabel" is in the list we check if the container contains the label "persistence" before trying to open it. Whenever a device containing encrypted media is probed the user will be prompted for the passphrase. The default value is "none".
158 .IP "\fBpersistence\-media\fR={\fIremovable\fR|\fIremovable\-usb\fR}" 4
159 If you specify the keyword 'removable', live\-boot will try to find persistence 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.
160 .IP "\fBpersistence\-method\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
161 This option determines which types of persistence media we allow. If "overlay" is in the list, we consider overlays (i.e. "live\-rw" and "home\-rw"). The default is "overlay".
162 .IP "\fBpersistence\-path\fR=\fIPATH\fR" 4
163 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.
164 .IP "\fBpersistence\-read\-only\fR" 4
165 Filesystem changes are not saved back to persistence media. In particular, overlays and netboot NFS mounts are mounted read-only.
166 .IP "\fBpersistence\-storage\fR=\fITYPE1\fR,\fITYPE2\fR ... \fITYPEn\fR" 4
167 This option determines which types of persistence storage to consider when probing for persistence 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".
168 .IP "\fBpersistence\-label\fR=\fILABEL1\fR,\fILABEL2\fR ... \fILABELn\fR" 4
169 live-boot will use the names in this list (instead of "persistence") when searching for persistent storage. Each LABEL can be a valid filename, partition label, or GPT name. The default is "persistence".
170 .IP "\fBnoeject\fR" 4
171 This option causes live\-boot to reboot without attempting to eject the media and without asking the user to remove the boot media.
172 .IP "\fBshowmounts\fR" 4
173 This parameter will make live\-boot to show on "/" the ro filesystems (mostly compressed) on "/lib/live". This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation.
174 .IP "\fBsilent\fR" 4
175 If you boot with the normal quiet parameter, live\-boot hides most messages of its own. When adding silent, it hides all.
176 .IP "\fBtodisk\fR=\fIDEVICE\fR" 4
177 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.
178 .IP "\fBtoram\fR" 4
179 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.
180 .IP "\fBunion\fR=overlay|aufs\fR" 4
181 By default, live\-boot uses overlay. With this parameter, you can switch to aufs.
182 .IP "\fBdm\-verity\-root\-hash\fR=\fIIMAGE:ROOTHASH\fR,\fIIMAGE2:ROOTHASH2\fR ... \fIIMAGEn:ROOTHASHn\fR" 4
183 Explicitly specify a dm\-verity root hash for a \fIIMAGE\fR. Full path needs to be specified. Hashes for multiple images can be comma separated specified.
184 .IP "\fBdm\-verity\-enforce\-roothash\-signature\fR" 4
185 Enforces that the root hash has to be checked against a signature.
186 .IP "\fBdm\-verity\-oncorruption\fR=ignore|panic|restart\fR" 4
187 Sets the regarding action for the kernel if corruption occurs on a dm-verity device.
188 .\" FIXME
189
190 .SH dm\-verity Support
191 live\-boot has support for dm\-verity backed root file systems. Which allows for error detection (and correction) in the underlying image.
192 .br
193 If for an image a file ending with \fI.verity\fR in the same directory as the image is found live\-boot attempts to mount that image with dm\-vertiy support.
194 For a given device with dm\-vertiy support a root hash must be specified. Either in a file ending with \fI.roothash\fR or with the kernel command-line option \fBdm\-verity\-root\-hash\fR.
195 If a file ending with \fI.roothash.p7s\fR is found it is used for signature checking in dm\-verity. If signature checking should be enforced the kernel command-line option \fBdm\-verity\-enforce\-roothash\-signature\fR must be set.
196 .br
197 Forward error detection gets enabled if a file ending with \fI.fec\fR and one with \fI.fec.roots\fR containing the number of roots are found.
198 .IP "Example file structure:" 4
199 /live/filesystem.squashfs
200 .br
201 /live/filesystem.squashfs.verity
202 .br
203 /live/filesystem.squashfs.fec
204 .br
205 /live/filesystem.squashfs.fec.roots
206 .br
207 /live/filesystem.squashfs.roothash
208 .br
209 /live/filesystem.squashfs.roothash.p7s
210
211
212 .\" FIXME
213 .SH FILES (old)
214 .IP "\fB/etc/live.conf\fR" 4
215 Some variables can be configured via this config file (inside the live system).
216 .IP "\fBlive/filesystem.module\fR" 4
217 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.
218 .\" FIXME
219
220 .SH FILES
221 .IP "\fB/etc/live/boot.conf\fR" 4
222 .IP "\fB/etc/live/boot/*\fR" 4
223 .IP "\fBlive/boot.conf\fR" 4
224 .IP "\fBlive/boot/*\fR" 4
225 .IP "\fBpersistence.conf\fR" 4
226
227 .SH SEE ALSO
228 \fIpersistence.conf\fR(5)
229 .PP
230 \fIlive\-build\fR(7)
231 .PP
232 \fIlive\-config\fR(7)
233 .PP
234 \fIlive\-tools\fR(7)
235
236 .SH HOMEPAGE
237 More information about live\-boot and the Debian Live project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fR> and in the manual at <\fIhttps://live-team.pages.debian.net/live-manual/\fR>.
238
239 .SH BUGS
240 Bugs can be reported by submitting a bugreport for the live\-boot package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Debian Live mailing list at <\[email protected]\fR>.
241
242 .SH AUTHOR
243 live\-boot was originally written by Daniel Baumann <\[email protected]\fR>. Since 2016 development has been continued by the Debian Live team.