ntrepid (8) initramfs-tools.8.gz
Provided by:
initramfs-tools_0.92bubuntu15_all
NAME
initramfs-tools - an introduction to writing scripts for
mkinitramfs
DESCRIPTION
initramfs-tools
has one main
script and
two different
sets of
subscripts which will be used during
different phases
of execution.
Each of these
will be discussed separately below with the help of an
imaginary tool which performs a frobnication of a
lvm partition prior
to mounting the root partition.
Valid boot
and hook
scripts names
consist solely of alphabetics,
numerics and underscores. Other scripts are discarded.
Hook scripts
These are used when an initramfs image is created and
not included in
the image
itself. They can however cause files to be
included in the
image.
Boot scripts
These are included in the initramfs image and normally
executed during
kernel boot in the early user-space before the
root partition has been
mounted.
INIT SCRIPT
The script which is executed first and is
in charge of
running all
other scripts can be found in /usr/share/initramfs-tools/init. It
takes
a number of arguments which influence the boot procedure:
Boot options
The init and root are usually passed by the boot loader for local
boot.
The other parameters are optional.
init the binary
to hand over execution to on the root fs after
the
initramfs scripts are done.
root the device node to mount as the root file system.
rootdelay
set delay in seconds. Determines how long
mountroot waits for
root to appear.
rootflags