fix: call update-grub after closing 99_reset

This commit is contained in:
Yao Wei (魏銘廷) 2023-08-14 17:46:55 +08:00
parent e0e2515eb5
commit 9c37efd534
1 changed files with 10 additions and 10 deletions

View File

@ -499,16 +499,16 @@ class InstallController(SubiquityController):
with open(self.tpath("etc/grub.d/99_reset"), "w") as fp:
os.chmod(fp.fileno(), 0o755)
fp.write(conf)
await run_curtin_command(
self.app,
context,
"in-target",
"-t",
self.tpath(),
"--",
"update-grub",
private_mounts=False,
)
await run_curtin_command(
self.app,
context,
"in-target",
"-t",
self.tpath(),
"--",
"update-grub",
private_mounts=False,
)
@with_context(description="configuring UEFI menu entry for factory reset")
async def configure_rp_boot_uefi(self, context, rp: Partition):