diff options
author | Yurii Kolesnykov | 2022-05-27 06:56:14 +0300 |
---|---|---|
committer | Yurii Kolesnykov | 2022-06-24 22:40:31 +0300 |
commit | 0ef19d00122ec32f180e111a158ca2035a375d84 (patch) | |
tree | 641121780a559298e63d696b62203b887e22c38b /zfs.initcpio.install | |
parent | 045da1732f6905db989ad5da4c0c26769c146bb3 (diff) | |
download | aur-0ef19d00122ec32f180e111a158ca2035a375d84.tar.gz |
refactor
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Diffstat (limited to 'zfs.initcpio.install')
-rw-r--r-- | zfs.initcpio.install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zfs.initcpio.install b/zfs.initcpio.install index 589b46bee544..d51183b19e89 100644 --- a/zfs.initcpio.install +++ b/zfs.initcpio.install @@ -22,7 +22,8 @@ build() { zstreamdump \ /lib/udev/vdev_id \ /lib/udev/zvol_id \ - findmnt + findmnt \ + udevadm map add_file \ /lib/udev/rules.d/60-zvol.rules \ @@ -38,9 +39,8 @@ build() { # allow mount(8) to "autodetect" ZFS echo 'zfs' >>"${BUILDROOT}/etc/filesystems" - [[ -f /etc/zfs/zpool.cache ]] && add_file "/etc/zfs/zpool.cache" + [[ -f /etc/zfs/zpool.cache ]] && cp "/etc/zfs/zpool.cache" "${BUILDROOT}/etc/zfs/zpool.cache.org" [[ -f /etc/modprobe.d/zfs.conf ]] && add_file "/etc/modprobe.d/zfs.conf" - [[ -f /etc/hostid ]] && add_file "/etc/hostid" } help() { |