]> git.ipfire.org Git - thirdparty/systemd.git/commit
Fix the "Failed to open random seed ..." message.
authorlongpanda <59477474+ventoy@users.noreply.github.com>
Thu, 5 Aug 2021 01:31:44 +0000 (09:31 +0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Aug 2021 08:56:01 +0000 (10:56 +0200)
commit2846007ecfb1fc84005b942167d394294c707d7b
treeae4146755e07e6310efe964d2a334f3b1a9fd1fa
parent5865dc1493e5519549d24fef23a2ce5c812eca32
Fix the "Failed to open random seed ..." message.

When boot ArchLinux from Ventoy, it always print `Failed to open random seed file: write protected.`
As Ventoy emulate the ISO file as a read-only CDROM, I didn't test with a real physical CDROM drive, but maybe it also has such problem.
As we use `EFI_FILE_MODE_WRITE`  to open the `loader\random-seed` file, so I think it's better to check the result with both  `EFI_WRITE_PROTECTED` and `EFI_NOT_FOUND`.
src/boot/efi/random-seed.c