Usage: mk-initramfs-oneSIS | [OPTION]... ![]() ![]() ![]() ![]() |
-i, | -initrd | Output an initrd image instead of an initramfs image |
-o, | -overlay=DIR | Overlay one or more directories on top of the |
initramfs template being used | ||
-b, | -basedir=DIR | Look for files relative to DIR (default: /) |
-c, | -config=FILE | Configuration file to use for tayloring initramfs. |
Any commandline parameters override settings | ||
specified in the config file | ||
(default: basedir/etc/oneSIS/initrams.conf) | ||
-v, | -variant=STRING | If multiple variants of a config file exists, |
specify the class or node variant to use | ||
-s, | -size=NUM | Hard code the size of an initrd. By default, |
the size is determined automatically and a small | ||
buffer is added on for usable empty space | ||
-bs, | -buffersize=NUM | Specify initrd empty space buffer size (default: 1024) |
-d, | -scsi | Include all scsi_hostadapter modules that are listed |
in basedir/etc/modprobe.conf | ||
-p, | -preload=STRING | Add the specified module (loads before SCSI modules) |
-w, | -with=STRING | Add the specified module (loads after SCSI modules) |
-t, | -template=FILE | Use the specified initramfs template. |
(default: /usr/share/oneSIS/initramfs-templates/initramfs-x86.tar.gz) | ||
-f, | -force | Force overwrite of an existing output file |
-td, | -tempdir=DIR | Use alternate staging directory instead of /tmp |
-q, | -quiet | Suppress output |
--- Initramfs Behavior Flags --- | ||
-rr, | -ramdiskroot | Use the ramdisk as the root filesystem |
-am, | -automount | Auto-mount labeled partitions and swapon swap |
partitions from the initramfs | ||
-rw, | -readwrite=STRING | Auto-mount specified labeled partitions read-write |
The string 'ALL' will mount all partitions read-write | ||
-nd, | -nodhcp | Don't run a DHCP client from the initramfs |
-di, | -dhcp_if | Run DHCP over the specified interface. (default: eth0) |
-dr, | -dhcp_retries | Attempt to retry DHCP this many times before failing |
(0 means infinite retries, default: 3) | ||
-nn, | -nonfs | Do not attempt to mount an NFS root |
An alternate method for booting oneSIS systems is to bootstrap using an
initial ramdisk (initramfs).
By using mk-initramfs-oneSIS, an initramfs can be built that
is customized for an entire cluster or for any subset of nodes.
Kernel modules needed for NFS and those specified by any
eth0 aliases in /etc/modules.conf are included
automatically in the initramfs and loaded at boot time. Likewise, any
scsi_hostadapter alias in /etc/modules.conf will
cause the
corresponding driver to be loaded when the -scsi option is given.
Any other modules can be included with command-line arguments.
All modules must exist in
/lib/modules/kernel-version relative to the basedir.
For example, to create an initramfs for a node running a 2.6.25 kernel
with an e1000 network card and IDE disk support built into
the kernel, assuming kernel modules are installed in
/lib/modules/2.6.25, you would type:
Local disk partitions that have been created with
DEPLOYMOUNT, or DEPLOYSWAP directives and the
mk-diskful script (see section 6.5) can be
mounted automatically (or swapped-on) from the initramfs.
To automount locally deployed partitions on the system described above:
Note: mk-initramfs-oneSIS does not currently look at /etc/fstab to determine which local partitions to mount.
root 2008-07-08