aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2016-11-14 23:55:45 +0000
committerSerge Schneider <[email protected]>2016-11-14 23:55:45 +0000
commitc4fb032d3b8e6113f4e2bc197442b01ed333968e (patch)
tree6b7f5a2607a2b6e5feb45e76e20080746ec34de2 /build.sh
parentdb10424a9bb781bb28cfda94e8f647f88d382800 (diff)
Use capsh to ensure file capabilities aren't set
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index c6abdae..2656be8 100755
--- a/build.sh
+++ b/build.sh
@@ -7,7 +7,7 @@ run_sub_stage()
for i in {00..99}; do
if [ -f ${i}-debconf ]; then
log "Begin ${SUB_STAGE_DIR}/${i}-debconf"
- on_chroot sh -e - << EOF
+ on_chroot << EOF
debconf-set-selections <<SELEOF
`cat ${i}-debconf`
SELEOF
@@ -18,7 +18,7 @@ EOF
log "Begin ${SUB_STAGE_DIR}/${i}-packages-nr"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < ${i}-packages-nr)"
if [ -n "$PACKAGES" ]; then
- on_chroot sh -e - << EOF
+ on_chroot << EOF
apt-get install --no-install-recommends -y $PACKAGES
EOF
fi
@@ -28,7 +28,7 @@ EOF
log "Begin ${SUB_STAGE_DIR}/${i}-packages"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < ${i}-packages)"
if [ -n "$PACKAGES" ]; then
- on_chroot sh -e - << EOF
+ on_chroot << EOF
apt-get install -y $PACKAGES
EOF
fi
@@ -69,7 +69,7 @@ EOF
fi
if [ -f ${i}-run-chroot ]; then
log "Begin ${SUB_STAGE_DIR}/${i}-run-chroot"
- on_chroot sh -e - < ${i}-run-chroot
+ on_chroot < ${i}-run-chroot
log "End ${SUB_STAGE_DIR}/${i}-run-chroot"
fi
done