Skip to content

Commit

Permalink
fix: call update-grub after closing 99_reset
Browse files Browse the repository at this point in the history
  • Loading branch information
medicalwei committed Aug 14, 2023
1 parent e0e2515 commit 9c37efd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions subiquity/server/controllers/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,16 +499,16 @@ async def configure_rp_boot_grub(self, context, rp: Partition, casper_uuid: str)
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):
Expand Down

0 comments on commit 9c37efd

Please sign in to comment.