From 02a4b05e59b25a5d55b37a92f4d76b169fc3c73d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:00 -0400 Subject: [PATCH] Allow passing mirror through buildpxe.sh --- buildpxe.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildpxe.sh b/buildpxe.sh index c7df9ea..1a38aad 100755 --- a/buildpxe.sh +++ b/buildpxe.sh @@ -29,6 +29,7 @@ show_help() { echo -e " -h: Display this help message." echo -e " -o: Create the PXE images under instead of the default." echo -e " -u: Change 'deploy' user to a new username." + echo -e " -m: Change the mirror server (default 'https://ftp.debian.org')." echo -e " -a: Preserve live-build artifacts (passed through to buildiso.sh)." echo -e " -k: Preserve live-build config (passed through to buildiso.sh)." echo -e " -i: Preserve live-build ISO image." @@ -48,6 +49,10 @@ while [ $# -gt 0 ]; do deployusername="${2}" shift 2 ;; + -m) + mirrorserver="-m ${2}" + shift 2 + ;; -a) preserve_artifacts='-a' shift @@ -88,6 +93,7 @@ build_iso() { -o pvc-installer_pxe-tmp.iso \ -u ${deployusername} \ -c x86_64 \ + ${mirrorserver} \ ${preserve_artifacts} \ ${preserve_livebuild} || fail "Failed to build ISO." echo