summarylogtreecommitdiffstats
path: root/zfs.initcpio.install
diff options
context:
space:
mode:
authorKevin Stolp2023-01-06 23:47:59 -0800
committerKevin Stolp2023-01-07 00:30:17 -0800
commit9e957f60fe241214e32ab4e9c5e15455379a9a64 (patch)
tree33573e14c3b5ed0e1d09934fa04b6a7cf2b9aef2 /zfs.initcpio.install
parent92a82463391ba637165c04640ef8fad39f0c3f9e (diff)
downloadaur-9e957f60fe241214e32ab4e9c5e15455379a9a64.tar.gz
Update initcpio files to handle encryption, etc.
Diffstat (limited to 'zfs.initcpio.install')
-rw-r--r--zfs.initcpio.install7
1 files changed, 4 insertions, 3 deletions
diff --git a/zfs.initcpio.install b/zfs.initcpio.install
index 589b46bee544..fd3387f66d68 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,9 @@ 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() {