Add Linux, libguestfs for building bootdisks within the Docker container. Add CPU_STRING to optionally override the whole CPU string. Unify variable names in ./custom.

This commit is contained in:
sickcodes
2021-02-25 08:52:56 +00:00
parent 4ffed54724
commit 9e5538c195
5 changed files with 75 additions and 62 deletions

View File

@ -89,21 +89,22 @@ function fish_fini() {
fish umount-all
}
# disabled by sick.codes to allow unattended image overwrites
######################################################################
# sanity checks
if test ! -f "$cfg"; then
echo "ERROR: cfg not found: $cfg"
exit 1
fi
if test -f "$img"; then
if test "$allow_override" = "yes"; then
rm -f "$img"
else
echo "ERROR: image exists: $img"
exit 1
fi
fi
# if test ! -f "$cfg"; then
# echo "ERROR: cfg not found: $cfg"
# exit 1
# fi
# if test -f "$img"; then
# if test "$allow_override" = "yes"; then
# rm -f "$img"
# else
# echo "ERROR: image exists: $img"
# exit 1
# fi
# fi
######################################################################
# go!