Skip to content

Commit

Permalink
initramfs: dracut - Change to some make-variables
Browse files Browse the repository at this point in the history
Change /etc/ to sysconfdir-variable and add default-config
to dracut initrd-image

Signed-off-by: theQuestionmark <[email protected]>
  • Loading branch information
theQuestionmark committed Jul 17, 2022
1 parent 18dff34 commit 9f2fd46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contrib/dracut/02zfsexpandknowledge/module-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ check() {
# shellcheck disable=SC2154
if [ -n "$hostonly" ]; then

if [ -f /etc/default/zfs ]; then
. /etc/default/zfs
if [ -f @sysconfdir@/default/zfs ]; then
. @sysconfdir@/default/zfs
if [ -n "$ZFS_INITRD_ADDITIONAL_DATASETS" ]; then
for add_zpool in $ZFS_INITRD_ADDITIONAL_DATASETS; do
add_mps+=$(find_add_zpool_mps "$add_zpool")
Expand Down
3 changes: 2 additions & 1 deletion contrib/dracut/90zfs/module-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ install() {
# -o ensures there is no error upon absence of these files
inst_multiple -o -H \
"@sysconfdir@/zfs/zpool.cache" \
"@sysconfdir@/zfs/vdev_id.conf"
"@sysconfdir@/zfs/vdev_id.conf" \
"@sysconfdir@/default/zfs"

# Synchronize initramfs and system hostid
if ! inst_simple -H @sysconfdir@/hostid; then
Expand Down

0 comments on commit 9f2fd46

Please sign in to comment.