blob: 5d86df4c9fac6824f9ea455b1c886ad8fc73a9bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Every host should have a "state" dataset, which is a ZFS dataset which
# persists across OS rebuilds.
[ -n "${state_dataset:-}" ] || die 'state_dataset not defined!'
create_dataset -o mountpoint=none "$state_dataset"
# If this is baremetal host or a VM, trim the zpools periodically.
if [ "$BOXCONF_VIRTUALIZATION_TYPE" != jail ]; then
install_file -m 0644 /etc/cron.d/zfs
fi
|