From d536ad45d28cedd4d1701731b555bd44bb4353f3 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 25 Sep 2021 18:03:43 +0200 Subject: [PATCH] fix container --- usr/bin/archboot-update-installer.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-update-installer.sh b/usr/bin/archboot-update-installer.sh index f111d98d1..796f46f23 100755 --- a/usr/bin/archboot-update-installer.sh +++ b/usr/bin/archboot-update-installer.sh @@ -60,8 +60,12 @@ fi # Generate new environment and launch it with kexec if [[ "${L_COMPLETE}" == "1" || "${L_INSTALL_COMPLETE}" == "1" ]]; then # create container - [[ "${L_COMPLETE}" == "1" ]] && archboot-create-container.sh "${W_DIR}" -cc -cp -alf || exit 1 - [[ "${L_INSTALL_COMPLETE}" == "1" ]] && archboot-create-container.sh "${W_DIR}" -cc -alf || exit 1 + if [[ "${L_COMPLETE}" == "1" ]]; then + archboot-create-container.sh "${W_DIR}" -cc -cp -alf || exit 1 + fi + if [[ "${L_INSTALL_COMPLETE}" == "1" ]]; then + archboot-create-container.sh "${W_DIR}" -cc -alf || exit 1 + fi # generate initrd in container systemd-nspawn -D "${W_DIR}" /bin/bash -c "umount /tmp;mkinitcpio -c ${CONFIG} -g /tmp/initrd.img; mv /tmp/initrd.img /" || exit 1 mv "${W_DIR}"/initrd.img /