fix release script

This commit is contained in:
Tobias Powalowski 2022-02-09 10:04:19 +01:00
parent b8ef052117
commit f245a9b42e
3 changed files with 5 additions and 8 deletions

View file

@ -2,7 +2,7 @@
# created by Tobias Powalowski <tpowa@archlinux.org>
source /usr/lib/archboot/functions
source /usr/lib/archboot/release_functions
export _ARCHBOOT="archboot-arm"
_ARCHBOOT="archboot-arm"
[[ -z "${1}" ]] && _usage
_root_check
_aarch64_check
@ -12,4 +12,3 @@ _create_boot
_create_torrent
_create_cksum
echo "Finished release creation in ${1} ."
unset _ARCHBOOT

View file

@ -2,8 +2,7 @@
# created by Tobias Powalowski <tpowa@archlinux.org>
source /usr/lib/archboot/functions
source /usr/lib/archboot/release_functions
export $1
export _ARCHBOOT="archboot"
_ARCHBOOT="archboot"
[[ -z "${1}" ]] && _usage
_root_check
_x86_64_check
@ -13,5 +12,4 @@ _create_boot
_create_torrent
_create_cksum
echo "Finished release creation in ${1} ."
unset _ARCHBOOT
unset $1

View file

@ -48,6 +48,6 @@ _generate_locales() {
_generate_keyring() {
# generate pacman keyring
echo "Generate pacman keyring in container ..."
systemd-nspawn -D "${_DIR}" pacman-key --init >/dev/null 2>&1
systemd-nspawn -D "${_DIR}" pacman-key --populate "${_KEYRING}" >/dev/null 2>&1
systemd-nspawn -q -D "${_DIR}" pacman-key --init >/dev/null 2>&1
systemd-nspawn -q -D "${_DIR}" pacman-key --populate "${_KEYRING}" >/dev/null 2>&1
}