Browse Source

UEFI Mode: only write kernel cmdline to UEFI binary

The kernel command line was being written both into
/etc/cmdline.d/01-default.conf and the UEFI executable.
During boot, getcmdline would concatenate these two
resulting in all arguments being duplicated. Some
args, such as ip=, are sensitive to the number of
times they are specified.
master
mwberry 4 years ago committed by Daniel Molkentin
parent
commit
fea53784ad
  1. 4
      dracut.sh

4
dracut.sh

@ -1620,7 +1620,9 @@ if [[ $kernel_only != yes ]]; then @@ -1620,7 +1620,9 @@ if [[ $kernel_only != yes ]]; then
(( ${#install_items[@]} > 0 )) && inst_multiple ${install_items[@]}
(( ${#install_optional_items[@]} > 0 )) && inst_multiple -o ${install_optional_items[@]}

[[ $kernel_cmdline ]] && printf "%s\n" "$kernel_cmdline" >> "${initdir}/etc/cmdline.d/01-default.conf"
if [[ $kernel_cmdline ]] && [[ $uefi != yes ]]; then
printf "%s\n" "$kernel_cmdline" >> "${initdir}/etc/cmdline.d/01-default.conf"
fi

for line in "${fstab_lines[@]}"; do
line=($line)

Loading…
Cancel
Save