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