summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-11-08 12:07:33 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-11-08 12:07:33 +0000
commitbd2cf0e0e4bac19f6966bc9ffaaca3e5044c5de3 (patch)
treeb5120ef0f82613587413d9b0b734df32e6c1b522 /build.sh
parentda6dde2aea5f222f068b6b7f623a9bd95fbfb382 (diff)
parentc3083ecd503629eac5184ec692f65bbbd28ac317 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index ea96633..986f81c 100755
--- a/build.sh
+++ b/build.sh
@@ -226,7 +226,7 @@ export TARGET_HOSTNAME=${TARGET_HOSTNAME:-raspberrypi}
export FIRST_USER_NAME=${FIRST_USER_NAME:-pi}
export FIRST_USER_PASS
export DISABLE_FIRST_BOOT_USER_RENAME=${DISABLE_FIRST_BOOT_USER_RENAME:-0}
-export RELEASE=${RELEASE:-bullseye}
+export RELEASE=${RELEASE:-bullseye} # Don't forget to update stage0/prerun.sh
export WPA_ESSID
export WPA_PASSWORD
export WPA_COUNTRY
@@ -283,6 +283,10 @@ fi
export NO_PRERUN_QCOW2="${NO_PRERUN_QCOW2:-1}"
+if [ "$SETFCAP" != "1" ]; then
+ export CAPSH_ARG="--drop=cap_setfcap"
+fi
+
dependencies_check "${BASE_DIR}/depends"
#check username is valid