Disable zfs auto-scrub

This commit is contained in:
Milan Meduna 2018-11-11 20:43:32 +01:00
parent 900ed8fffd
commit 2d19129cba
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@ install dialog utility
setup-usl-mm
1. Pre-reboot script ->
install zfs-utils and disable zpool auto-scrub,
change timezone to Prague,
crypt swap partition with ecryptfs-utils,
crypt some partition with dmcrypt to use with /var/lib/lxd and LXD ZFS storage,

View file

@ -7,6 +7,9 @@ pre_reboot_script () {
echo "Installing requirements"
apt install cryptsetup ecryptfs-utils zfsutils-linux -y
echo "Disabling zpool auto-scrub"
sed -ie 's/^/#/' /etc/cron.d/zfsutils-linux
echo "Starting ecryptfs-setup-swap"
ecryptfs-setup-swap