From 21d261ab89c0f5fdece68e94bd89bc1986b74fd2 Mon Sep 17 00:00:00 2001 From: noiseless Date: Sun, 28 Sep 2014 00:37:00 +0400 Subject: [PATCH 1/2] If /etc/modprobe.d/zfs.conf exists, it will be added to initcpio. --- zfs-utils-git/zfs-utils.initcpio.install | 4 ++++ zfs-utils-lts/zfs-utils.initcpio.install | 3 +++ 2 files changed, 7 insertions(+) diff --git a/zfs-utils-git/zfs-utils.initcpio.install b/zfs-utils-git/zfs-utils.initcpio.install index 058543f..bc2a3e1 100644 --- a/zfs-utils-git/zfs-utils.initcpio.install +++ b/zfs-utils-git/zfs-utils.initcpio.install @@ -45,6 +45,7 @@ build() { echo 'zfs' >>"$BUILDROOT/etc/filesystems" [[ -f /etc/zfs/zpool.cache ]] && add_file "/etc/zfs/zpool.cache" + [[ -f /etc/modprobe.d/zfs.conf ]] && add_file "/etc/modprobe.d/zfs.conf" [[ -f /etc/hostid ]] && add_file "/etc/hostid" } @@ -85,6 +86,9 @@ Examples: zfs=tank/root rw +If you want to set properties for zfs-on-linux module, you should add them to +/etc/modprobe.d/zfs.conf and then rebuild initcpio. + HELPEOF } diff --git a/zfs-utils-lts/zfs-utils.initcpio.install b/zfs-utils-lts/zfs-utils.initcpio.install index 058543f..617bf6e 100644 --- a/zfs-utils-lts/zfs-utils.initcpio.install +++ b/zfs-utils-lts/zfs-utils.initcpio.install @@ -45,6 +45,7 @@ build() { echo 'zfs' >>"$BUILDROOT/etc/filesystems" [[ -f /etc/zfs/zpool.cache ]] && add_file "/etc/zfs/zpool.cache" + [[ -f /etc/modprobe.d/zfs.conf ]] && add_file "/etc/modprobe.d/zfs.conf" [[ -f /etc/hostid ]] && add_file "/etc/hostid" } @@ -85,6 +86,8 @@ Examples: zfs=tank/root rw +If you want to set properties for zfs-on-linux module, you should add them to +/etc/modprobe.d/zfs.conf and then rebuild initcpio. HELPEOF } From db21a9a084faacef929ca85ffc8afda5df522f64 Mon Sep 17 00:00:00 2001 From: noiseless Date: Sun, 28 Sep 2014 00:42:17 +0400 Subject: [PATCH 2/2] Add new line before HELPEOF --- zfs-utils-lts/zfs-utils.initcpio.install | 1 + 1 file changed, 1 insertion(+) diff --git a/zfs-utils-lts/zfs-utils.initcpio.install b/zfs-utils-lts/zfs-utils.initcpio.install index 617bf6e..bc2a3e1 100644 --- a/zfs-utils-lts/zfs-utils.initcpio.install +++ b/zfs-utils-lts/zfs-utils.initcpio.install @@ -88,6 +88,7 @@ Examples: If you want to set properties for zfs-on-linux module, you should add them to /etc/modprobe.d/zfs.conf and then rebuild initcpio. + HELPEOF }