Skip to content

Commit 3cb8298

Browse files
committed
fixup! feat(extensions): add netboot extension for full TFTP+NFS boot
1 parent c51cdb9 commit 3cb8298

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

extensions/netboot/netboot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright (c) 2026 Igor Velkov
44
# This file is a part of the Armbian Build Framework https://github.com/armbian/build/
55
#
6-
# Netboot: produce kernel + DTB + extlinux.conf + rootfs.tgz for TFTP/NFS root
6+
# Netboot: produce kernel + DTB + extlinux.conf + rootfs archive/export tree for TFTP/NFS root
77
# boot without local storage. See Developer-Guide_Netboot.md for server setup
88
# (tftpd-hpa + nfs-kernel-server + router DHCP options) and for the
99
# `netboot_artifacts_ready` hook used to auto-deploy artifacts to a server.
@@ -55,6 +55,9 @@ function extension_prepare_config__netboot_defaults_and_validate() {
5555
else
5656
declare -g NETBOOT_NFS_PATH="${NETBOOT_NFS_PATH:-/srv/netboot/rootfs/shared/${LINUXFAMILY}/${BOARD}/${BRANCH}-${RELEASE}}"
5757
fi
58+
if [[ "${NETBOOT_NFS_PATH}" != /* ]]; then
59+
exit_with_error "${EXTENSION}: NETBOOT_NFS_PATH must be an absolute path (got '${NETBOOT_NFS_PATH}')"
60+
fi
5861

5962
if [[ -n "${NETBOOT_CLIENT_MAC}" ]]; then
6063
declare -g NETBOOT_CLIENT_MAC_NORMALIZED="${NETBOOT_CLIENT_MAC//:/-}"

0 commit comments

Comments
 (0)