Allow passing mirror through buildpxe.sh

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:00 -04:00
parent 4403bff888
commit 02a4b05e59
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,7 @@ show_help() {
echo -e " -h: Display this help message." echo -e " -h: Display this help message."
echo -e " -o: Create the PXE images under <outputdirectory> instead of the default." echo -e " -o: Create the PXE images under <outputdirectory> instead of the default."
echo -e " -u: Change 'deploy' user to a new username." 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 " -a: Preserve live-build artifacts (passed through to buildiso.sh)."
echo -e " -k: Preserve live-build config (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." echo -e " -i: Preserve live-build ISO image."
@ -48,6 +49,10 @@ while [ $# -gt 0 ]; do
deployusername="${2}" deployusername="${2}"
shift 2 shift 2
;; ;;
-m)
mirrorserver="-m ${2}"
shift 2
;;
-a) -a)
preserve_artifacts='-a' preserve_artifacts='-a'
shift shift
@ -88,6 +93,7 @@ build_iso() {
-o pvc-installer_pxe-tmp.iso \ -o pvc-installer_pxe-tmp.iso \
-u ${deployusername} \ -u ${deployusername} \
-c x86_64 \ -c x86_64 \
${mirrorserver} \
${preserve_artifacts} \ ${preserve_artifacts} \
${preserve_livebuild} || fail "Failed to build ISO." ${preserve_livebuild} || fail "Failed to build ISO."
echo echo