diff --git a/scripts/common.sh b/scripts/common.sh index 9255d7c..f259b76 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -152,15 +152,15 @@ on_chroot() { findmnt -n -o SOURCE / mkdir -p ${STAGE_DIR}/../../additionalFiles/ findmnt -n -o SOURCE / > ${STAGE_DIR}/../../additionalFiles/mount.txt - echo $pwd > ../../pwd.txt + echo $pwd > ../../pwd1.txt cd ../../ mkdir out cd out - ls ../additionalFiles/ - exit 1 echo $pwd > ../additionalFiles/pwd.txt + cat ../additionalFiles/pwd.txt + exit 1 cd .. - cd $(cat pwd.txt) + cd $(cat pwd1.txt) cp -r "${STAGE_DIR}/../../additionalFiles" "${MNT_DIR}/opt" capsh --drop=cap_setfcap "--chroot=${MNT_DIR}/" -- "$@"