Adding live-initramfs 1.87.2-1.
[live-boot-grml.git] / manpages / live-initramfs.7
1 .TH CASPER 7 "Thu,  28 Sep 2006" "1.69" "Initramfs-tools hook"
2
3 .SH NAME
4 casper \- a hook for initramfs-tools to boot live systems.
5
6 .SH SYNOPSIS
7 .B BOOT=casper
8 As kernel parameter boot prompt.
9
10 .SH DESCRIPTION
11 Casper is a hook for initramfs-tools used to generate an initramfs capable to boot live systems as those created by make-live. This includes the Debian-Live isos, netboot tarballs, and usb stick images and Ubuntu live cds. At boot time it will look for a (read-only) media containing a "/casper" directory where a root filesystems (often a compressed squashfs) is stored. If found, it will create a writable environment, using unionfs, for debian like systems to boot from.
12
13 .SH RECOGNIZED BOOT OPTIONS
14 .TP
15 .B live-getty
16 This enables a special "serial" login shell (experimental).
17 .TP
18 .B xdebconf
19 uses xdebconfigurator, if present on the rootfs, to configure X instead of the standard procedure (experimental).
20 .TP
21 .BI "hostname=" HOSTNAME " , userfullname=" USERFULLNAME " , username=" USERNAME
22 Those parameters lets you override values read from the config file.
23 .TP
24 .BI "{keyb|kbd-chooser/method}=" KEYBOARD " , {klayout|console-setup/layoutcode}=" LAYOUT " , {kvariant|console-setup/variantcode}=" VARIANT " , {kmodel|console-setup/modelcode}=" CODE " ,  koptions=" OPTIONS
25 Configure the running keyboard as specified, if this one misses casper behaves as if "keyb=us" was specified. It will be interfered from "locale=" if locale is only 2 lowecase letters as a special case. You could also specify console layout, variant, code, and options (no defaults).
26 .TP
27 .BI ip= IFACE,ADDRESS,NETMASK,GATEWAY [ :IFACE,ADDRESS,NETMASK,GATEWAY "]*"
28 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).
29 .TP
30 .BR ip[= frommedia ]
31 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.
32 .TP
33 .BI "{live-media|bootfrom}=" DEVICE
34 If you specify one of this two equivalent forms, casper will first try to find this device for the "/casper" directory where the read-only root filesystem should reside. If it did not find something usable, the normal scan for block devices is performed.
35 .TP
36 .BI "live-media-offset=" BYTES
37 This way you could tell casper 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.
38 .TP
39 .BI "locale=" LOCALE " | debian-installer/locale=" LOCALE
40 Configure the running locale as specified, if not present the live-media rootfs configured locale will be used and if also this one misses casper behave as "locale=en_US.UTF-8" was specified. If only 2 lowercase letter are specified (like "it"), the "maybe wanted" locale is generated (like it:IT.UTF-8), in this case if also "keyb=" is unspecified is set with those 2 lowercase letters (keyb=it).
41 .TP
42 .BR "netboot[=" nfs "|" cifs ]
43 This tells casper 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.
44 .TP
45 .B persistent
46 Casper will look for persistent and snapshot partitions or files labeled "casper-rw", "home-rw", and files called "casper-sn*", "home-sn*" and will try to, in order: mount as /cow the first, mount the second in /home, and just copy the contents of the latter in appropriate locations (snapshots). Snapshots will be tried to be updated on reboot/shutdown. Look at live-snapshot(1) for more informations.
47 .TP
48 .B nopersistent
49 disables the above mentioned "persistent" feature, useful if the bootloader (like syslinux) has been installed with persistent enabled.
50 .TP
51 .B "showmounts"
52 This parameter will make casper to show on "/" the ro filesystems (mostly compressed) on /casper. This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation.
53 .TP
54 .BI "todisk=" DEVICE
55 Adding this parameter, casper 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.
56 .TP
57 .B toram
58 Adding this parameter, casper 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.
59 .TP
60 .BI "{preseed/file|file}=" FILE
61 A path to a file present on the rootfs could be used to preseed debconf database.
62 .TP
63 .BI "package/question=" VALUE
64 All debian installed packages could be preseeded from command-line that way, beware of blanks spaces, they will interfere with parsing, use a preseed file in this case.
65
66 .SH FILES
67 .B /etc/live.conf
68 some variables can be configured via this config file.
69
70 .SH BUGS
71 .B casper
72 works fully on amd64, i386 and ppc, it should also run on other archs.
73
74 .SH HOMEPAGE
75 Debian Live project <http://live.debian.net/>
76
77 .SH SEE ALSO
78 .BR live-snapshot(1), initramfs-tools(8), make-live(8), make-live.conf(5)
79
80 .SH AUTHOR
81 casper was written by Tollen Fog Heen <tfheen@canonical.com>, Matt Zimmerman <mdz@canonical.com>, and Marco Amadori <marco.amadori@gmail.com>.
82 .TP
83 This manual page was written by Marco Amadori <marco.amadori@gmail.com>,
84 for the Debian project (but may be used by others).