mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix cleanup in tarball helper
This commit is contained in:
parent
d5a60ff564
commit
04d26f45a6
2 changed files with 5 additions and 3 deletions
|
@ -72,7 +72,7 @@ cp "${AARCH64_ARCHBOOT}" "${_DIR}/"
|
||||||
cp "${AARCH64_ARCHBOOT_FIRMWARE}" "${_DIR}/"
|
cp "${AARCH64_ARCHBOOT_FIRMWARE}" "${_DIR}/"
|
||||||
# install archboot-arm
|
# install archboot-arm
|
||||||
echo "Install archboot-arm and archboot-linux-firmware to container..."
|
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
|
systemd-nspawn -D "${_DIR}" /bin/bash -c "yes | pacman -U /archboot-arm-latest.tar.zst" >/dev/null 2>&1
|
||||||
if [[ "${_SAVE_RAM}" == "1" ]]; then
|
if [[ "${_SAVE_RAM}" == "1" ]]; then
|
||||||
# clean container from not needed files
|
# clean container from not needed files
|
||||||
|
|
|
@ -98,5 +98,7 @@ if ! [ "${TARNAME}" = "" ]; then
|
||||||
fi
|
fi
|
||||||
# clean directory
|
# clean directory
|
||||||
rm -r ${TEMPDIR}
|
rm -r ${TEMPDIR}
|
||||||
rm ${BOOTMESSAGE}
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||||
rm ${OPTIONSBOOTMESSAGE}
|
rm ${BOOTMESSAGE}
|
||||||
|
rm ${OPTIONSBOOTMESSAGE}
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue