bootctl: make 'random-seed' handle inability to write system token EFI variable grace...
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2019 15:33:22 +0000 (16:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Nov 2019 18:55:17 +0000 (19:55 +0100)
commit351de38e4b4e6ca324346e6dbcefd224bbb3b190
tree43e8f84efd913cfe08ba375b4f1a5b199ed88016
parent9389a3cdc82022a0b8bcfcfee9b45a4896b34539
bootctl: make 'random-seed' handle inability to write system token EFI variable gracefully

Apparently some firmwares don't allow us to write this token, and refuse
it with EINVAL. We should normally consider that a fatal error, but not
really in the case of "bootctl random-seed" when called from the
systemd-boot-system-token.service since it's called as "best effort"
service after boot on various systems, and hence we shouldn't fail
loudly.

Similar, when we cannot find the ESP don't fail either, since there are
systems (arch install ISOs) that carry a boot loader capable of the
random seed logic but don't mount it after boot.

Fixes: #13603
man/bootctl.xml
src/boot/bootctl.c
units/systemd-boot-system-token.service.in