add container check for release and server release

This commit is contained in:
Tobias Powalowski 2022-11-23 09:40:12 +01:00
parent 7595efc15f
commit 117095cdd8
2 changed files with 2 additions and 0 deletions

View file

@ -4,6 +4,7 @@
. /usr/lib/archboot/release.sh
[[ -z "${1}" ]] && _usage
_root_check
_container_check
echo "Start release creation in ${1} ..."
_create_iso "$@" || exit 1
_create_boot || exit 1

View file

@ -2,6 +2,7 @@
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/server.sh
_root_check
_container_check
if echo "${_BASENAME}" | grep -qw riscv64 || echo "${_BASENAME}" | grep -qw aarch64; then
_update_pacman_chroot || exit 1
fi