Skip to content

Commit

Permalink
clear existing iso
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Nov 23, 2023
1 parent 484c803 commit 20e8aa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ sed -i "s#@HOSTNAME@#${hostname}#" "${workdir}/preseed.cfg"
sed -i "s#@DOMAIN@#${domain}#" "${workdir}/preseed.cfg"
sed -i "s#@PACKAGES@#${apt_pkgs[*]}#" "${workdir}/preseed.cfg"

# clear existing output iso file
if test -f "${out_file}"; then
rm -f "${out_file}"
fi

# repack iso
rm -f "${iso_file//.iso/-auto.iso}"
xorriso -indev "${iso_file}" \
Expand Down

0 comments on commit 20e8aa2

Please sign in to comment.