bootctl: print SystemdOptions from efivarfs if newer than our cache
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 11 Jun 2021 15:11:34 +0000 (17:11 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 Jun 2021 20:01:42 +0000 (22:01 +0200)
commitad2d6880eaf96916e82ae83fc6d57c7f4daf620e
tree754fe160bb5a6b086ce5cb6813c7f7481452fe4d
parentc67bd42b716390cc0c193b7484553e0425e52858
bootctl: print SystemdOptions from efivarfs if newer than our cache

The logic is that if the options are updated after boot, we *don't* use
the new value. But we still want to print out the changed contents in
bootctl as to not confuse people.

Fixes #19597.
Also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988450.

$ build/bootctl systemd-efi-options
quiet
Note: SystemdOptions EFI variable has been modified since boot. New value: debug

The hint is printed to stderr, so scripts should not be confused.
src/basic/efivars.c
src/basic/efivars.h
src/boot/bootctl.c