warewulf-dracut includes a dracut module to be installed in a container image to support building an initramfs that can boot from Warewulf. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
14 lines
408 B
Bash
Executable File
14 lines
408 B
Bash
Executable File
#!/bin/bash
|
|
|
|
info "Mounting tmpfs at $NEWROOT"
|
|
mount -t tmpfs ${wwinit_tmpfs_size_option} tmpfs "$NEWROOT"
|
|
|
|
for archive in "${wwinit_container}" "${wwinit_kmods}" "${wwinit_system}" "${wwinit_runtime}"
|
|
do
|
|
if [ -n "${archive}" ]
|
|
then
|
|
info "Loading ${archive}"
|
|
(curl --silent -L "${archive}" | gzip -d | cpio -im --directory="${NEWROOT}") || die "Unable to load ${archive}"
|
|
fi
|
|
done
|