-
-
Notifications
You must be signed in to change notification settings - Fork 15
feature pipeline
The feature calls the pipe elements one by one and passes them the results of the previous elements.
This feature is intended for boot scenarios not related to simple disk initialization. Normal disk loading can also be done using pipeline (see examples).
To activate a pipeline, you must specify it as root=pipeline in the boot
cmdline. The sequence of steps is specified in the pipeline=... parameter.
-
getimagereceives and mounts the remote image. -
mountfsmounts file from the previous pipe element. -
overlayfscombines one or more pipe elements using overlayfs. -
waitdevwaits for the local device to appear. -
rootfsuses the result of the previous element as a root. -
wait-resumeis waiting for the resume attempt to complete. This step is necessary to avoid race conditions between disk initialization for resume and pipeline. -
pingallows to wait until the network address starts pinging.
-
pipeline=NAME[,NAME1][,NAME2]- the main parameter that determines the order in which pipe elements are called. -
getimage=URLspecifies an URL to fetch and mount. If a file from a local directory is to be retrieved, thefile://scheme must be used. -
mountfs=FILEspecifies a file to mount. -
mountfs-opts=MOUNT-OPTIONScomma (,) separated mount options. -
overlayfs=LAYERSdefines a list of elements to be combined. -
waitdev=DEVSPECdescribes the local device to wait. The format of this parameter is the same asroot=. -
ping=[OPTIONS:][ADDRESS]The comma (,) separated options include:v4,v6- determines the ip version;iter=NUMBERspecifies the number of attempts to ping the address;waitforif specified, the wait will be forever (this is the default behavior). The address can be an ip address or a hostname, or%gateway, which stands for the default gateway address. The default ADDRESS is%gateway. -
pipe-retry=NUMBERdetermines how many times a certain step can fail (single parameter). -
pipe-verify-sign=NAME[,NAME1][,NAME2]defines a list of steps where signature verification should be enabled (single parameter).
The separator between the elements is a comma (,).
The parameters can be specified more than once depending on how many times
a corresponding element is mentioned in the pipeline.
Cmdline: root=pipeline pipeline=waitdev,mountfs,rootfs waitdev=LABEL=MYROOT mountfs=dev
Using these parameters, the pipeline will wait for a device with the "MYROOT"
label, mount it, and boot from it.
Cmdline: root=pipeline pipeline=getimage,mountfs,overlayfs,rootfs getimage=http://ftp.altlinux.org/pub/people/mike/iso/misc/vi-20140918-i586.iso mountfs=rescue
Following these parameters, the pipeline downloads the vi-20140918-i586.iso image, mount it as a loop, make it writable using overlayfs and will try to boot from it.
- Get Started
- Initramfs Runtime
- Image Generation
- Contributing
- FAQ
- Presentations