Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Most scripts are covered by this ISC license.

Copyright (c) 2014-2024 Jan Klemkow <j.klemkow@wemelug.de>
Copyright (c) 2016-2024 Alexander Bluhm <bluhm@openbsd.org>
Copyright (c) 2016-2026 Alexander Bluhm <bluhm@openbsd.org>
Copyright (c) 2019 Moritz Buhl <testmaster@moritzbuhl.de>
Copyright (c) 2019 Patrick Wildt <patrick@blueri.se>

Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 16 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EOF
setup=$1
shift
case "$setup" in
install|upgrade|dhcp|linux)
install|upgrade|dhcp|linux|netbsd)
;;
*)
usage
Expand Down Expand Up @@ -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 <<EOF
boot tftp:netbsd
EOF
set_dhcpd_conf on netpxeboot
power.sh cycle
login.expect
set_dhcpd_conf off
exit 0
fi

if [ -z "${kernel:-}" ]; then
ftp "http://$obsdmirror/pub/OpenBSD/$release/$arch/bsd.rd"
signify -C -p /etc/signify/$basekey -x SHA256.sig bsd.rd
Expand Down