Merge pull request #5 from medicalwei/rp-hacky-fixes
Fixing some fixes regarding to RP
This commit is contained in:
commit
eb40871631
|
@ -435,7 +435,7 @@ class InstallController(SubiquityController):
|
|||
casper_uuid = fp.read().strip()
|
||||
rp_partuuid = self.app.kernel_cmdline.get("rp-partuuid")
|
||||
if casper_uuid is not None and rp_partuuid is not None:
|
||||
rp = self.app.base_model.partition_by_partuuid(rp_partuuid)
|
||||
rp = self.app.base_model.filesystem.partition_by_partuuid(rp_partuuid)
|
||||
if rp is not None:
|
||||
await self.configure_rp_boot(
|
||||
context=context, rp=rp, casper_uuid=casper_uuid
|
||||
|
@ -557,7 +557,7 @@ class InstallController(SubiquityController):
|
|||
cmd = [
|
||||
"efibootmgr",
|
||||
"--bootorder",
|
||||
",".join(efi_state_before.order),
|
||||
",".join(efi_state_before.order + [new_bootnum]),
|
||||
]
|
||||
rp_bootnum = new_bootnum
|
||||
await self.app.command_runner.run(cmd)
|
||||
|
|
|
@ -264,7 +264,7 @@ class TestInstallController(unittest.IsolatedAsyncioTestCase):
|
|||
[
|
||||
"efibootmgr",
|
||||
"--bootorder",
|
||||
"0000,0002",
|
||||
"0000,0002,0003",
|
||||
]
|
||||
),
|
||||
]
|
||||
|
@ -295,7 +295,14 @@ class TestInstallController(unittest.IsolatedAsyncioTestCase):
|
|||
[
|
||||
"efibootmgr",
|
||||
"--bootorder",
|
||||
"0000,0002",
|
||||
"0000,0002,0003",
|
||||
]
|
||||
),
|
||||
call(
|
||||
[
|
||||
"efibootmgr",
|
||||
"--bootnext",
|
||||
"0003",
|
||||
]
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue