rewrite based on reference project from github

This commit is contained in:
2026-01-30 22:58:37 +01:00
parent 1e884eec99
commit 4790e69113
4 changed files with 74 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Parse netboot parameters from kernel command line
BOOT_SERVER=$(getarg boot_server=)
IMAGE_VERSION=$(getarg image_version=)
[ -z "$BOOT_SERVER" ] && BOOT_SERVER="192.168.100.1"
[ -z "$IMAGE_VERSION" ] && IMAGE_VERSION="latest"
echo "BOOT_SERVER=$BOOT_SERVER" > /tmp/netboot.conf
echo "IMAGE_VERSION=$IMAGE_VERSION" >> /tmp/netboot.conf
info "Netboot: server=$BOOT_SERVER version=$IMAGE_VERSION"