diff options
| author | Serge Schneider <serge@raspberrypi.org> | 2016-11-14 23:55:45 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.org> | 2016-11-14 23:55:45 +0000 |
| commit | c4fb032d3b8e6113f4e2bc197442b01ed333968e (patch) | |
| tree | 6b7f5a2607a2b6e5feb45e76e20080746ec34de2 /stage2 | |
| parent | db10424a9bb781bb28cfda94e8f647f88d382800 (diff) | |
Use capsh to ensure file capabilities aren't set
Diffstat (limited to 'stage2')
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 8 | ||||
| -rwxr-xr-x | stage2/03-cleanup/00-run.sh | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 515146f..8e2d149 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -10,7 +10,7 @@ install -m 644 files/ttyoutput.conf ${ROOTFS_DIR}/etc/systemd/system/rc-local. install -m 644 files/50raspi ${ROOTFS_DIR}/etc/apt/apt.conf.d/ -on_chroot sh -e - <<EOF +on_chroot << EOF systemctl disable hwclock.sh systemctl disable nfs-common systemctl disable rpcbind @@ -20,7 +20,7 @@ systemctl enable apply_noobs_os_config systemctl enable resize2fs_once EOF -on_chroot sh -e - << \EOF +on_chroot << \EOF for GRP in input spi i2c gpio; do groupadd -f -r $GRP done @@ -29,11 +29,11 @@ for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi done EOF -on_chroot sh -e - <<EOF +on_chroot << EOF setupcon --force --save-only -v EOF -on_chroot sh -e - <<EOF +on_chroot << EOF usermod --pass='*' root EOF diff --git a/stage2/03-cleanup/00-run.sh b/stage2/03-cleanup/00-run.sh index 97bfb08..071a164 100755 --- a/stage2/03-cleanup/00-run.sh +++ b/stage2/03-cleanup/00-run.sh @@ -1,5 +1,5 @@ #!/bin/bash -e -on_chroot sh -e - <<EOF +on_chroot << EOF apt-get clean EOF |
