Skip to content

Commit

Permalink
check if chroot_executable exists in target overlayfs, copy if not
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Jun 21, 2023
1 parent 37bbf7d commit d6b31ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions try
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ mount --rbind /dev "$SANDBOX_DIR/temproot/dev"
## seemingly not impactful warning.
mount --rbind --read-only /run "$SANDBOX_DIR/temproot/run" 2> /dev/null
## Check if chroot_executable exists, #29
cat "$SANDBOX_DIR/temproot/$chroot_executable" > /dev/null || cp $chroot_executable "$SANDBOX_DIR/temproot/$chroot_executable"
unshare --root="$SANDBOX_DIR/temproot" /bin/bash "$chroot_executable"
EOF

Expand Down

0 comments on commit d6b31ff

Please sign in to comment.