File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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//:/ -} "
You can’t perform that action at this time.
0 commit comments