From 6787b3bd748d2f44f707d07ae7012eb5ab614795 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Wed, 15 May 2024 00:13:55 +0200 Subject: [PATCH] Update common.sh --- scripts/common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/common.sh b/scripts/common.sh index 8d43049..6c77047 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -152,7 +152,9 @@ on_chroot() { findmnt -n -o SOURCE / mkdir -p ${STAGE_DIR}/../../additionalFiles/ findmnt -n -o SOURCE / > ${STAGE_DIR}/../../additionalFiles/mount.txt - echo ../../${STAGE_DIR} > ${STAGE_DIR}/../../additionalFiles/pwd.txt + echo $pwd + exit 1 + echo ${STAGE_DIR} > ${STAGE_DIR}/../../additionalFiles/pwd.txt cp -r "${STAGE_DIR}/../../additionalFiles" "${MNT_DIR}/opt" capsh --drop=cap_setfcap "--chroot=${MNT_DIR}/" -- "$@"