From e13cdb35ff7e033f63126d029a7c75577cc08d98 Mon Sep 17 00:00:00 2001 From: griznog Date: Fri, 26 Jan 2024 09:08:16 -0600 Subject: [PATCH 1/2] An ipxe script to boot from local disk. --- etc/ipxe/localdisk.ipxe | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 etc/ipxe/localdisk.ipxe diff --git a/etc/ipxe/localdisk.ipxe b/etc/ipxe/localdisk.ipxe new file mode 100644 index 00000000..6106db90 --- /dev/null +++ b/etc/ipxe/localdisk.ipxe @@ -0,0 +1,41 @@ +#!ipxe + +echo +echo ================================================================================ +echo Warewulf v4 now booting: {{.Fqdn}} ({{.Hwaddr}}) from local disk. +echo +echo + +# Behavior depends on EFI vs Legacy. +iseq ${platform} efi && goto efi || goto legacy + +:efi +echo "Booting from local disk in EFI mode requires" +echo "that the Boot options be set so that booting" +echo "from disk is the next item after network boot" +echo "in the boot order." +sleep 10s +exit 1 +goto end + +:legacy +echo "Scanning for a local boot device." +:drivex80 +sanboot --no-describe --drive 0x80 || goto drivex81 +:drivex81 +sanboot --no-describe --drive 0x81 || goto drivex82 +:drivex82 +sanboot --no-describe --drive 0x82 || goto drivex83 +:drivex83 +sanboot --no-describe --drive 0x83 || goto drivex84 +:drivex84 +sanboot --no-describe --drive 0x84 || goto failsafe + +failsafe: +echo "Falling through to Legacy BIOS Boot order." +sleep 10 +exit 1 + +:end +echo "This should never be reached." + From eaa8ee592f1e9d1a8aaab8041c1f3edfd2fe884f Mon Sep 17 00:00:00 2001 From: griznog Date: Fri, 26 Jan 2024 09:09:09 -0600 Subject: [PATCH 2/2] Update changelog. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a52d5283..1db04c03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- ipxe script to boot node from local disk. - Option to change the `ipmitool` escape character - New documentation for the hostlist syntax. #611 - New documentation for development environment (Vagrant)