Create dracut with default modules; fix initramfs.img location in syslinux.cfg

This commit is contained in:
oddlama 2020-04-25 22:37:50 +02:00
parent 2c7c804105
commit 56cea7d8ee
No known key found for this signature in database
GPG Key ID: 88EA325D51D53908
1 changed files with 4 additions and 7 deletions

View File

@ -128,12 +128,9 @@ generate_initramfs() {
--confdir "/dev/null" \
--kver "$kver" \
--no-compress \
--hostonly \
--hostonly-mode "strict" \
--no-hostonly-cmdline \
--no-hostonly-default-device \
--no-hostonly \
--ro-mnt \
--modules "bash ${modules[*]}" \
--add "bash ${modules[*]}" \
--force \
"$output"
}
@ -172,8 +169,8 @@ PROMPT 0
TIMEOUT 0
LABEL gentoo
LINUX ../vmlinuz-current
APPEND initrd=initramfs.img $(get_cmdline)
LINUX ../vmlinuz-current
APPEND initrd=../initramfs.img $(get_cmdline)
EOF
}