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 <[email protected]>
  • Loading branch information
AdamWill authored and jkonecny12 committed Jun 10, 2024
1 parent 1cdc7d7 commit 0b2fc13
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 0b2fc13

Please sign in to comment.