- Update dracut scripts, iPXE template, and GRUB config templates to use new route paths and TLS-aware logic - Minor troubleshooting doc cleanup Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Jonathon Anderson <janderson@ciq.com>
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
#!/bin/sh
|
|
# root=wwinit|wwinit:*
|
|
|
|
[ -z "$root" ] && root=$(getarg root=)
|
|
|
|
case "${root}" in
|
|
wwinit|wwinit:*)
|
|
info "warewulf: root=${root}"
|
|
|
|
export wwinit_server="$(getarg wwinit.server)"
|
|
export wwinit_uri="$(getarg wwinit.uri)"
|
|
if [ -n "${wwinit_server}" ] || [ -n "${wwinit_uri}" ]; then
|
|
info "warewulf: Found root=${root} and wwinit.server=${wwinit_server} wwinit.uri=${wwinit_uri}. Will boot from Warewulf."
|
|
rootok=1
|
|
else
|
|
die "warewulf: Found root=${root} but neither wwinit.server nor wwinit.uri. Cannot boot from Warewulf."
|
|
fi
|
|
|
|
export wwinit_uuid=$(dmidecode -s system-uuid)
|
|
export wwinit_assetkey=$(dmidecode -s chassis-asset-tag)
|
|
|
|
wwinit_tmpfs_size="$(getarg wwinit.tmpfs.size)"
|
|
if [ -n "$wwinit_tmpfs_size" ]; then
|
|
export wwinit_tmpfs_size_option="-o size=${wwinit_tmpfs_size}"
|
|
fi
|
|
|
|
case "${root}" in
|
|
wwinit)
|
|
export wwinit_root_device="tmpfs"
|
|
;;
|
|
wwinit:*)
|
|
export wwinit_root_device="${root#wwinit:}"
|
|
;;
|
|
esac
|
|
|
|
case "${wwinit_root_device}" in
|
|
initramfs|rootfs)
|
|
info "warewulf: using tmpfs in stead of ${wwinit_root_device}"
|
|
export wwinit_root_device=tmpfs
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|