From e157e9b96ea1bd274b97f5eba4c2ee71e494b8a1 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 25 Sep 2021 21:53:10 +0200 Subject: [PATCH] cleanup system before reassembling --- usr/bin/archboot-update-installer.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/bin/archboot-update-installer.sh b/usr/bin/archboot-update-installer.sh index c49f80b01..dbcfe3ccd 100755 --- a/usr/bin/archboot-update-installer.sh +++ b/usr/bin/archboot-update-installer.sh @@ -59,6 +59,10 @@ fi # Generate new environment and launch it with kexec if [[ "${L_COMPLETE}" == "1" || "${L_INSTALL_COMPLETE}" == "1" ]]; then + # reeove everything not necessary + rm -r /lib/firmware + rm -r /lib/modules + rm -r /usr/share # create container if [[ "${L_COMPLETE}" == "1" ]]; then archboot-create-container.sh "${W_DIR}" -cc -cp -alf || exit 1