summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2016-11-14 23:55:45 +0000
committerSerge Schneider <serge@raspberrypi.org>2016-11-14 23:55:45 +0000
commitc4fb032d3b8e6113f4e2bc197442b01ed333968e (patch)
tree6b7f5a2607a2b6e5feb45e76e20080746ec34de2 /export-image
parentdb10424a9bb781bb28cfda94e8f647f88d382800 (diff)
Use capsh to ensure file capabilities aren't set
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/01-set-sources/01-run.sh2
-rwxr-xr-xexport-image/03-finalise/01-run.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/export-image/01-set-sources/01-run.sh b/export-image/01-set-sources/01-run.sh
index 638b581..86dea2d 100755
--- a/export-image/01-set-sources/01-run.sh
+++ b/export-image/01-set-sources/01-run.sh
@@ -1,6 +1,6 @@
#!/bin/bash -e
-on_chroot sh -e - <<EOF
+on_chroot << EOF
apt-get update
apt-get -y dist-upgrade
apt-get clean
diff --git a/export-image/03-finalise/01-run.sh b/export-image/03-finalise/01-run.sh
index c5a83c1..c64c92b 100755
--- a/export-image/03-finalise/01-run.sh
+++ b/export-image/03-finalise/01-run.sh
@@ -2,7 +2,7 @@
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
-on_chroot sh -e - <<EOF
+on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
EOF