automount zfs volumes on boot

This commit is contained in:
Marcel Stangenberger 2025-05-17 19:57:58 +02:00
parent 8a138af117
commit d6aa088045

13
zfs/mount.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
mkdir /etc/zfs/zfs-list.cache
touch /etc/zfs/zfs-list.cache/$1
systemctl enable zfs-zed.service
systemctl restart zfs-zed.service
zfs set relatime=off $1
zfs inherit relatime $1
systemctl daemon-reload
reboot