fix: put EFI boot entry of recovery partition last of boot order
This commit is contained in:
parent
3716f1259f
commit
e0e2515eb5
|
@ -557,7 +557,7 @@ class InstallController(SubiquityController):
|
||||||
cmd = [
|
cmd = [
|
||||||
"efibootmgr",
|
"efibootmgr",
|
||||||
"--bootorder",
|
"--bootorder",
|
||||||
",".join(efi_state_before.order),
|
",".join(efi_state_before.order + [new_bootnum]),
|
||||||
]
|
]
|
||||||
rp_bootnum = new_bootnum
|
rp_bootnum = new_bootnum
|
||||||
await self.app.command_runner.run(cmd)
|
await self.app.command_runner.run(cmd)
|
||||||
|
|
|
@ -264,7 +264,7 @@ class TestInstallController(unittest.IsolatedAsyncioTestCase):
|
||||||
[
|
[
|
||||||
"efibootmgr",
|
"efibootmgr",
|
||||||
"--bootorder",
|
"--bootorder",
|
||||||
"0000,0002",
|
"0000,0002,0003",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -295,7 +295,14 @@ class TestInstallController(unittest.IsolatedAsyncioTestCase):
|
||||||
[
|
[
|
||||||
"efibootmgr",
|
"efibootmgr",
|
||||||
"--bootorder",
|
"--bootorder",
|
||||||
"0000,0002",
|
"0000,0002,0003",
|
||||||
|
]
|
||||||
|
),
|
||||||
|
call(
|
||||||
|
[
|
||||||
|
"efibootmgr",
|
||||||
|
"--bootnext",
|
||||||
|
"0003",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue