Skip to content

Commit

Permalink
Update common.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 14, 2024
1 parent 199fcf9 commit cb5e8ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}/" -- "$@"

Expand Down

0 comments on commit cb5e8ce

Please sign in to comment.