Fix grub asset key handling

Signed-off-by: Elmar Pruesse <pruessee@njhealth.org>
This commit is contained in:
Elmar Pruesse
2024-07-03 15:22:14 -06:00
committed by Christian Goll
parent ee734d28ab
commit 097fbbc82a
2 changed files with 5 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ echo
echo "Warewulf Controller: {{.Ipaddr}}"
echo
sleep 1
smbios --type1 --get-string 8 --set assetkey
smbios --type 3 --get-string 8 --set assetkey
uri="(http,{{.Ipaddr}}:{{.Port}})/provision/${net_default_mac}?assetkey=${assetkey}"
kernel="${uri}&stage=kernel"
@@ -70,7 +70,7 @@ menuentry "Network boot node with dracut: {{.Id}}" --id dracut {
}
menuentry "Chainload specific configfile" {
conf="(http,{{.Ipaddr}}:{{.Port}})/efiboot/grub.cfg"
conf="(http,{{.Ipaddr}}:{{.Port}})/efiboot/grub.cfg?assetkey=${assetkey}"
configfile $conf
}