From cb5e8ced58c85a847596e0b2a662f78fa9a376a7 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Wed, 15 May 2024 00:21:33 +0200 Subject: [PATCH] Update common.sh --- scripts/common.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index 3569c9e..9eae60f 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -154,9 +154,11 @@ on_chroot() { findmnt -n -o SOURCE / > ${STAGE_DIR}/../../additionalFiles/mount.txt echo $pwd > ../../pwd.txt cd ../../ - ls -a - exit 1 - echo ${STAGE_DIR} > ${STAGE_DIR}/../../additionalFiles/pwd.txt + mkdir out + cd out + echo $pwd > ../additionalFiles/pwd.txt + cd .. + cd $(cat pwd.txt) cp -r "${STAGE_DIR}/../../additionalFiles" "${MNT_DIR}/opt" capsh --drop=cap_setfcap "--chroot=${MNT_DIR}/" -- "$@"