From ead88f34d7d0f805cbd4642935f3a7dbf9ccd55f Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 30 Aug 2023 10:08:21 -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