aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst2
-rwxr-xr-xarchiso/mkarchiso7
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5d6b50c..0c95080 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -11,6 +11,8 @@ Added
Changed
-------
+- Remove the pacstrap directory early to lower the maximum size of the working directory.
+
Deprecated
----------
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 553d0d2..de7bf01 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -1704,6 +1704,13 @@ _build_bootstrap_image() {
# Build ISO
_build_iso_image() {
+ # Remove the pacstrap directory early to lower the maximum size of the working directory.
+ # The creation of the airootfs image has already been completed.
+ if (( rm_work_dir )); then
+ _msg_info 'Removing pacstrap directory...'
+ rm -rf -- "${work_dir:?}/${arch}/airootfs"
+ fi
+
local xorriso_options=() xorrisofs_options=()
local bootmode