mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
cleanup system before reassembling
This commit is contained in:
parent
2ea109c8d7
commit
e157e9b96e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue