diff options
author | Tharre <tharre3@gmail.com> | 2019-05-31 05:26:11 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-06-30 04:11:56 +0200 |
commit | ff4d0ff92609f9d9509d7009e7e25ea3d2ee9361 (patch) | |
tree | f12f532e5979ab9d83edcc18c5546b7514d4d8ed /arch-system | |
parent | 687315205e2251432566e5d438d57a513760ec54 (diff) | |
download | pkgbuilds-ff4d0ff92609f9d9509d7009e7e25ea3d2ee9361.tar.gz pkgbuilds-ff4d0ff92609f9d9509d7009e7e25ea3d2ee9361.tar.xz pkgbuilds-ff4d0ff92609f9d9509d7009e7e25ea3d2ee9361.zip |
arch-system: enable btrfs-scrub@-.timer
.. but only on systems that have a btrfs filesystem mounted on `/`.
Diffstat (limited to 'arch-system')
-rw-r--r-- | arch-system/base-system.install | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch-system/base-system.install b/arch-system/base-system.install index 371f832..ee56a6e 100644 --- a/arch-system/base-system.install +++ b/arch-system/base-system.install @@ -3,6 +3,7 @@ post_upgrade() { locale-gen systemctl enable --now avahi-daemon.service + mount | grep -q "on / type btrfs" && systemctl enable --now btrfs-scrub@-.timer } post_install() { @@ -11,4 +12,5 @@ post_install() { pre_remove() { systemctl disable avahi-daemon.service + systemctl disable btrfs-scrub@-.timer } |