cw-mkramfs#
NAME
cw-mkramfs -- Tool to create an initial root file system image.
Note
This command used to be scyld-mkramfs. The legacy
scyld-* command is deprecated and will be removed in a future
release.
USAGE
cw-mkramfs[-h][OPTION] ... `` ``-o, -output PATH
STANDARD OPTIONS
- -h, --help
Print usage message and exit. Ignore trailing args, parse and ignore preceding args.
- --update, -u BOOT
Space-separated list of boot configurations to update.
- --output, -o PATH
Where to write the initramfs.
- --image, -i IMGID
Uses
cw-modimgto install the clusterware-tools package inside the image IMGID, and then executescw-mkramfsinside the image to create the root file system image.- --kver VERSION
Specify the kernel version to use, overriding the default of the head node's current kernel (viewed with
uname -r).
ADVANCED OPTIONS
- --stripped
Exclude all network drivers not loaded on some node.
- --drivers NAMES
Space-separated list of additional kernel drivers to include.
- --modules NAMES
Space-separated list of additional dracut modules to include.
- --ramfs-conf PATH
Use a config file from a non-standard location PATH.
- --base-url URL
Specify the base URL of the ClusterWare REST API.
EXAMPLES
cw-mkramfs --update OpenMPI-Slurm-Boot
Rebuild the initramfs used by the OpenMPI-Slurm-Boot boot configuration.
cw-mkramfs --update OpenMPI-Slurm-Boot --drivers mlx4_core
Rebuild the initramfs used by the OpenMPI-Slurm-Boot boot configuration after adding the mlx4_core driver (and its dependencies).
cw-mkramfs --update OpenMPI-Slurm-Boot --kver 5.14.0-503.40.1.el9_5.x86_64
Rebuild the initramfs in the boot config after an administrator installs a new kernel into the image that the boot config is using. The
--kverargument is needed if there are multiple kernels installed in the image.
RETURN VALUES
Upon successful completion, cw-mkramfs returns 0.
On failure, an error message is printed to stderr and
cw-mkramfs returns 1.