summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-27 06:31:37 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-27 06:34:54 +0200
commite858cc76cb4d2ed5d0b3009602a8db33e0dd87d2 (patch)
tree61f70fa7ad1df0ffa1bace5bc911239e3d840b98
parentMade timezone links relative. (diff)
downloadprofiles-e858cc76cb4d2ed5d0b3009602a8db33e0dd87d2.tar.gz
profiles-e858cc76cb4d2ed5d0b3009602a8db33e0dd87d2.tar.xz
Auto install btrfs-progs if btrfs filesystems are detected.
-rw-r--r--manifests/common.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/common.pp b/manifests/common.pp
index 79949b7..1b66357 100644
--- a/manifests/common.pp
+++ b/manifests/common.pp
@@ -77,4 +77,12 @@ class profiles::common (
file { '/etc/ld.so.conf.d/usr-local.conf':
content => "/usr/local/lib\n",
}
+
+ # If a btrfs filesystem is detected, install userspace utilities.
+ if $facts['filesystems'] =~ 'btrfs' {
+ ensure_packages([
+ # Package name checked for Archlinux
+ 'btrfs-progs',
+ ])
+ }
}