From 2d19129cba9c7d05359a875425d3cae56a2a2db1 Mon Sep 17 00:00:00 2001 From: milan Date: Sun, 11 Nov 2018 20:43:32 +0100 Subject: [PATCH] Disable zfs auto-scrub --- README.md | 1 + setup-usl-mm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index be27b83..ea11340 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/setup-usl-mm b/setup-usl-mm index d6e4731..22fc2bb 100755 --- a/setup-usl-mm +++ b/setup-usl-mm @@ -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