image: switch to ZFS
authorKristof Provost <kp@FreeBSD.org>
Wed, 26 Feb 2025 20:14:23 +0000 (21:14 +0100)
committerKristof Provost <kp@FreeBSD.org>
Wed, 26 Feb 2025 20:14:23 +0000 (21:14 +0100)
Both because ZFS, but also because of worries over file system checks on unclean
shutdown.

image/build.sh
image/overlay/domotica/etc/rc.d/ansibleprep

index 7d7391e..9d6a452 100755 (executable)
@@ -14,7 +14,7 @@ poudriere image \
        -b \
        -c overlay/domotica \
        -n domotica \
-       -s 6g -t usb
+       -s 6g -t zfs+gpt
 
 # Put the domotica image in the installer overlay
 xz -v -z -c \
index e778aba..48b7dde 100755 (executable)
@@ -12,6 +12,11 @@ start_cmd="ansibleprep_start"
 
 ansibleprep_start()
 {
+       # Work around /tmp not having the correct permissions on the ZFS image
+       # Just set them here.
+       chmod 777 /tmp
+       chmod +t /tmp
+
        # Only do this until we've set the hostname, which we use as a proxy for
        # 'initial config done, reverse ssh tunnel ready'
        # We do do a daily poll, so worst case it'll eventually work out.