Update initcpio files to handle encryption, etc.

This commit is contained in:
Kevin Stolp
2023-01-06 23:47:59 -08:00
parent 92a8246339
commit 9e957f60fe
4 changed files with 156 additions and 37 deletions

View File

@@ -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() {