From c4a5776e33b3f2630c7c56dcbad2454cb66ff9e4 Mon Sep 17 00:00:00 2001 From: Celestia Ludenberg Date: Thu, 11 Jun 2026 18:50:59 +0200 Subject: [PATCH] Fix run_before_squashfs.sh: use work_dir from argument instead of hardcoded path Allows the script to find the airootfs when mkarchiso is run with -w --- mkarchiso | 2 +- run_before_squashfs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mkarchiso b/mkarchiso index 955f0e8..8bb27c6 100755 --- a/mkarchiso +++ b/mkarchiso @@ -200,7 +200,7 @@ _run_mksquashfs() { # change for Antergos NeXT start - "$RUN_BEFORE_SQUASHFS" + "$RUN_BEFORE_SQUASHFS" "$work_dir" # change for Antergos NeXT end diff --git a/run_before_squashfs.sh b/run_before_squashfs.sh index a072392..b4bf6a0 100755 --- a/run_before_squashfs.sh +++ b/run_before_squashfs.sh @@ -6,7 +6,7 @@ # refining and changes november 2021 @killajoe and @manuel script_path=$(readlink -f "${0%/*}") -work_dir="work" +work_dir="${1:-work}" # needed for ranking mirrors inside the chroot start get_country() {