Systemd/src/kernel-install
Zbigniew Jędrzejewski-Szmek 88e1306af6 kernel-install: do not require non-empty kernel cmdline
When booting with Fedora-Server-dvd-x86_64-30-20190411.n.0.iso,
/proc/cmdline is empty (libvirt, qemu host with bios, not sure if that
matters), after installation to disk, anaconda would "crash" in kernel-core
%posttrans, after calling kernel-install, because dracut would fail
with

> Could not determine the kernel command line parameters.
> Please specify the kernel command line in /etc/kernel/cmdline!

I guess it's legitimate, even if unusual, to have no cmdline parameters.
Two changes are done in this patch:

1. do not fail if the cmdline is empty.
2. if /usr/lib/kernel/cmdline or /etc/kernel/cmdline are present, but
   empty, ignore /proc/cmdline. If there's explicit configuration to
   have empty cmdline, don't ignore it.

The same change was done in dracut:
https://github.com/dracutdevs/dracut/pull/561.
2019-08-27 18:30:49 +02:00
..
00-entry-directory.install kernel-install: create the entry directory only if $BOOT/$MACHINE_ID exists 2019-03-12 09:45:16 +01:00
50-depmod.install kernel-install: rename $BOOT_DIR[_ABS] to $ENTRY_DIR[_ABS] 2019-03-12 09:45:16 +01:00
90-loaderentry.install kernel-install: do not require non-empty kernel cmdline 2019-08-27 18:30:49 +02:00
kernel-install kernel-install: add a check that the vmlinuz arg is sane 2019-04-03 11:25:40 +02:00
meson.build kernel-install: create the entry directory only if $BOOT/$MACHINE_ID exists 2019-03-12 09:45:16 +01:00