aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2025-03-21 11:26:21 +0200
committernl6720 <nl6720@gmail.com>2025-03-21 11:26:21 +0200
commitef7f7d2caba88a4edc67db56c9988994a37005d7 (patch)
treee94de9f39d7395a936fb9e3a3c0b6f09306aa01b
parentaa775f003d266f2c479c16e62769e6fa605561c9 (diff)
parentaef3ce42a35d827830a029223296a71c73d8c341 (diff)
downloadarchiso-ef7f7d2caba88a4edc67db56c9988994a37005d7.tar.gz
archiso-ef7f7d2caba88a4edc67db56c9988994a37005d7.tar.bz2
Merge remote-tracking branch 'origin/merge-requests/401'
By Julian * origin/merge-requests/401: Remove the pacstrap directory early to lower the maximum size of the working directory See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/401
-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