From c3b6ee78ef314983f1099235feabea45a3df8b4b Mon Sep 17 00:00:00 2001 From: Samuel Aubertin Date: Thu, 15 Sep 2022 15:02:35 +0200 Subject: [PATCH] cleanup provision --- provision-openbsd.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/provision-openbsd.sh b/provision-openbsd.sh index 26c9546..a102908 100644 --- a/provision-openbsd.sh +++ b/provision-openbsd.sh @@ -1,10 +1,8 @@ #!/bin/sh set -e set +x - - ( - echo MAGMA : Starting packer provisioning. + echo Starting packer provisioning. sysctl -n kern.version printf 'permit nopass :wheel\n' > /etc/doas.conf printf 'PasswordAuthentication yes\nPermitRootLogin yes\n' >> /etc/ssh/sshd_config @@ -13,8 +11,6 @@ set +x echo Cleaning caches find /var/log -type f | while read f; do echo -ne '' > $f; done find /tmp -type f | while read f; do echo -ne '' > $f; done - #echo Filling /EMPTY with zeroes... - #dd if="/dev/zero" of="/EMPTY" bs=4096 > /dev/null 2>&1 || rm -f "/EMPTY" sync sync echo Packer provisionning done.