commit: a50d0292870d3b1856bd2e86ee21593ea22f0786
Author: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Fri May 9 11:15:02 2025 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Oct 3 14:22:28 2025 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=a50d0292
functions.sh: pass on arguments in exec_in_chroot function
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>
targets/support/functions.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 8f229d22..db72dcdb 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -17,6 +17,7 @@ exec_in_chroot() {
local file_name=$(basename ${1})
copy_to_chroot ${1}
+ shift
copy_to_chroot ${clst_shdir}/support/chroot-functions.sh
# Ensure the file has the executable bit set
@@ -24,7 +25,7 @@ exec_in_chroot() {
echo "Running ${file_name} in chroot:"
echo " ${clst_CHROOT} ${clst_chroot_path} /tmp/${file_name}"
- ${clst_CHROOT} "${clst_chroot_path}" "/tmp/${file_name}" || exit 1
+ ${clst_CHROOT} "${clst_chroot_path}" "/tmp/${file_name}" "${@}" || exit
1
delete_from_chroot /tmp/${file_name}
delete_from_chroot /tmp/chroot-functions.sh