fix cleanup in tarball helper

This commit is contained in:
Tobias Powalowski 2022-01-07 19:08:14 +01:00
parent d5a60ff564
commit 04d26f45a6
2 changed files with 5 additions and 3 deletions

View file

@ -72,7 +72,7 @@ cp "${AARCH64_ARCHBOOT}" "${_DIR}/"
cp "${AARCH64_ARCHBOOT_FIRMWARE}" "${_DIR}/"
# install archboot-arm
echo "Install archboot-arm and archboot-linux-firmware to container..."
systemd-nspawn -D "${_DIR}" /bin/bash -c "yes | pacman -U /archboot-firmware-latest.tar.zst" >/dev/null 2>&1
systemd-nspawn -D "${_DIR}" /bin/bash -c "yes | pacman -U /archboot-linux-firmware-latest.tar.zst" >/dev/null 2>&1
systemd-nspawn -D "${_DIR}" /bin/bash -c "yes | pacman -U /archboot-arm-latest.tar.zst" >/dev/null 2>&1
if [[ "${_SAVE_RAM}" == "1" ]]; then
# clean container from not needed files

View file

@ -98,5 +98,7 @@ if ! [ "${TARNAME}" = "" ]; then
fi
# clean directory
rm -r ${TEMPDIR}
rm ${BOOTMESSAGE}
rm ${OPTIONSBOOTMESSAGE}
if [[ "$(uname -m)" == "x86_64" ]]; then
rm ${BOOTMESSAGE}
rm ${OPTIONSBOOTMESSAGE}
fi