This commit is contained in:
Joshua Boniface 2021-12-04 02:49:20 -05:00
parent 3fb93b8359
commit 061832ec16
1 changed files with 6 additions and 6 deletions

View File

@ -79,14 +79,14 @@ fail() {
} }
build_iso() { build_iso() {
if [[ ! -f pvc-installer_pxe-tmp.iso ]]; then if [[ ! -f pvc-installer_pxe-tmp.iso ]]; then
./buildiso.sh \ ./buildiso.sh \
-o pvc-installer_pxe-tmp.iso \ -o pvc-installer_pxe-tmp.iso \
-u ${deployusername} \ -u ${deployusername} \
${preserve_artifacts} \ ${preserve_artifacts} \
${preserve_livebuild} || fail "Failed to build ISO." ${preserve_livebuild} || fail "Failed to build ISO."
echo echo
fi fi
} }
build_pxe() { build_pxe() {
@ -128,10 +128,10 @@ initrd \${root-url}/initrd.img
imgargs vmlinuz console=tty0 console=ttyS0,115200n8 boot=live components timezone=America/Toronto fetch=\${root-url}/filesystem.squashfs username=root \${host-args} imgargs vmlinuz console=tty0 console=ttyS0,115200n8 boot=live components timezone=America/Toronto fetch=\${root-url}/filesystem.squashfs username=root \${host-args}
boot boot
EOF EOF
echo "done." echo "done."
sudo chown -R $(whoami) ${outputdir} sudo chown -R $(whoami) ${outputdir}
sudo chmod -R u+w ${outputdir} sudo chmod -R u+w ${outputdir}
if [[ -z ${preserve_liveiso} ]]; then if [[ -z ${preserve_liveiso} ]]; then
echo -n "Removing temporary ISO... " echo -n "Removing temporary ISO... "