aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian <deadbeef@outlook.de>2025-03-19 20:57:41 +0000
committerJulian <deadbeef@outlook.de>2025-03-19 20:57:41 +0000
commitaef3ce42a35d827830a029223296a71c73d8c341 (patch)
treee94de9f39d7395a936fb9e3a3c0b6f09306aa01b
parentaa775f003d266f2c479c16e62769e6fa605561c9 (diff)
downloadarchiso-aef3ce42a35d827830a029223296a71c73d8c341.tar.gz
archiso-aef3ce42a35d827830a029223296a71c73d8c341.tar.bz2
Remove the pacstrap directory early to lower the maximum size of the working directory
-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