From 5ead19324799bee21cd2c6e9f8bf03a82ecf8ae7 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 20 Jan 2026 01:02:51 +0100 Subject: [PATCH] Boot netbsd install kernel over pxe. --- LICENSE | 2 +- run.sh | 2 +- setup.sh | 17 ++++++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index ed4140d..7ea1249 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ Most scripts are covered by this ISC license. Copyright (c) 2014-2024 Jan Klemkow -Copyright (c) 2016-2024 Alexander Bluhm +Copyright (c) 2016-2026 Alexander Bluhm Copyright (c) 2019 Moritz Buhl Copyright (c) 2019 Patrick Wildt diff --git a/run.sh b/run.sh index 87f8408..f309382 100755 --- a/run.sh +++ b/run.sh @@ -31,7 +31,7 @@ case "$action" in exec $setenv $action.sh fi ;; -"install"|"upgrade"|"dhcp"|"linux") +"install"|"upgrade"|"dhcp"|"linux"|"netbsd") if ! test -f /home/$USER/env/install; then no_command; fi if $setenv checklock.sh; then shift diff --git a/setup.sh b/setup.sh index 9e8d908..0fdf91d 100755 --- a/setup.sh +++ b/setup.sh @@ -20,7 +20,7 @@ EOF setup=$1 shift case "$setup" in -install|upgrade|dhcp|linux) +install|upgrade|dhcp|linux|netbsd) ;; *) usage @@ -215,6 +215,21 @@ if [ "$setup" == "linux" ]; then exit 0 fi +if [ "$setup" == "netbsd" ]; then + rm -f -- $tftp_dir/netpxeboot $tftp_dir/netx64.efi $tftp_dir/netbsd + cp $tftp_home/netbsd/amd64/pxeboot_ia32.bin $tftp_dir/netpxeboot + cp $tftp_home/netbsd/amd64/bootx64.efi $tftp_dir/netx64.efi + gzcat $tftp_home/netbsd/amd64/netbsd-INSTALL.gz >$tftp_dir/netbsd + cat >$tftp_dir/boot.cfg <