Systemd/src/boot
Mikko Ylinen 293b167349 sd-boot: stub: check LoadOptions contains data (#5467)
With some UEFI shells LoadOptionsSize is reported being > 0
but the corresponding LoadOptions does not contain any data
(the first element has value 0).

When that happens, the stub feature that allows .cmdline to be
replaced by what's in LoadOptions ends up copying nothing/random
data to the kernel cmdline resulting in different kinds of boot
problems.

To fix this, add a check to see if LoadOptions contains data
before replacing the .cmdline.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
2017-02-27 20:03:07 +01:00
..
efi sd-boot: stub: check LoadOptions contains data (#5467) 2017-02-27 20:03:07 +01:00
bootctl.c Merge pull request #5449 from keszybz/blkd-error-handling 2017-02-25 12:25:27 +01:00
Makefile boot: add stub Makefile symlink 2013-02-13 02:19:03 +01:00