cleanup system before reassembling

This commit is contained in:
Tobias Powalowski 2021-09-25 21:53:10 +02:00
parent 2ea109c8d7
commit e157e9b96e

View file

@ -59,6 +59,10 @@ fi
# Generate new environment and launch it with kexec # Generate new environment and launch it with kexec
if [[ "${L_COMPLETE}" == "1" || "${L_INSTALL_COMPLETE}" == "1" ]]; then 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 # create container
if [[ "${L_COMPLETE}" == "1" ]]; then if [[ "${L_COMPLETE}" == "1" ]]; then
archboot-create-container.sh "${W_DIR}" -cc -cp -alf || exit 1 archboot-create-container.sh "${W_DIR}" -cc -cp -alf || exit 1