summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-11-08 12:04:09 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-11-08 12:04:12 +0000
commitc3083ecd503629eac5184ec692f65bbbd28ac317 (patch)
tree4e88777e7666e9624acc658e5f8f74fb3f01a392 /scripts
parent549681f6e217d6e713afb943d571afda83542a2f (diff)
Add parameter to keep cap_setfcap
Fixes #643
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/common b/scripts/common
index e476f0f..14be1c2 100644
--- a/scripts/common
+++ b/scripts/common
@@ -17,7 +17,7 @@ bootstrap(){
BOOTSTRAP_ARGS+=("$@")
printf -v BOOTSTRAP_STR '%q ' "${BOOTSTRAP_ARGS[@]}"
- setarch linux32 capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
+ setarch linux32 capsh $CAPSH_ARG -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
if [ -d "$2/debootstrap" ] && ! rmdir "$2/debootstrap"; then
cp "$2/debootstrap/debootstrap.log" "${STAGE_WORK_DIR}"
@@ -90,7 +90,7 @@ on_chroot() {
mount --bind /sys "${ROOTFS_DIR}/sys"
fi
- setarch linux32 capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@"
+ setarch linux32 capsh $CAPSH_ARG "--chroot=${ROOTFS_DIR}/" -- -e "$@"
}
export -f on_chroot