diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-11-25 10:46:08 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-11-25 10:46:08 +0200 |
commit | 10afe26c76d9a32ed654308ae92c40023b1638fc (patch) | |
tree | d1f36488d09d3b094ef354b1c08e2dde272402bb /zfs.initcpio.install | |
parent | Update to 2.1.6 (diff) | |
download | zfs-utils-10afe26c76d9a32ed654308ae92c40023b1638fc.tar.xz |
Diffstat (limited to 'zfs.initcpio.install')
-rw-r--r-- | zfs.initcpio.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zfs.initcpio.install b/zfs.initcpio.install index 589b46b..27e11f5 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,10 @@ 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" + [[ -f /etc/fstab ]] && add_file "/etc/fstab" } help() { |