Proper spacing in cmdline; no root= needed for zfs

This commit is contained in:
oddlama 2021-05-31 16:29:02 +02:00
parent 5c1d81d650
commit fa050ae95a
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 6 additions and 6 deletions

View File

@ -146,14 +146,14 @@ function generate_initramfs() {
}
function get_cmdline() {
local root_line
if [[ $USED_ZFS == "true" ]]; then
root_line="root=zfs:AUTO"
else
root_line="root=UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")"
local cmdline=("rd.vconsole.keymap=$KEYMAP_INITRAMFS")
cmdline+=("${DISK_DRACUT_CMDLINE[@]}")
if [[ $USED_ZFS != "true" ]]; then
cmdline+=("root=UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")")
fi
echo -n "rd.vconsole.keymap=$KEYMAP_INITRAMFS ${DISK_DRACUT_CMDLINE[*]} $root_line"
echo -n "${cmdline[*]}"
}
function install_kernel_efi() {