rewrite based on reference project from github
This commit is contained in:
13
dracut-module/90netboot/parse-netboot.sh
Executable file
13
dracut-module/90netboot/parse-netboot.sh
Executable 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"
|
||||
Reference in New Issue
Block a user