Skip to content

Commit

Permalink
bootupd: call bootupctl with --update-firmware
Browse files Browse the repository at this point in the history
This is required to write an entry to the EFI boot manager,
which we ought to do (anaconda does it when installing the
bootloader itself). Without this, boot of the installed system
will only work if it's configured to try and boot from the
hard disk using the fallback path.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
  • Loading branch information
AdamWill committed Mar 7, 2024
1 parent c473364 commit a405c66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ def _install_bootupd(self):
"install",
"--auto",
"--write-uuid",
"--update-firmware",
"--device",
dev_data.path,
"/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ def test_bootupd_run(self, devdata_mock, storage_mock, symlink_mock, rename_mock
exec_mock.assert_has_calls([
call(
"bootupctl",
["backend", "install", "--auto", "--write-uuid", "--device",
"/dev/btldr-drv", "/"],
["backend", "install", "--auto", "--write-uuid", "--update-firmware",
"--device", "/dev/btldr-drv", "/"],
root=sysroot
),
call(
Expand Down

0 comments on commit a405c66

Please sign in to comment.