From 0965653d2ee01433dc1f8419bbb285c4fc331dec Mon Sep 17 00:00:00 2001 From: Ryutaroh Matsumoto Date: Fri, 15 Jan 2021 12:57:17 +0100 Subject: feat: Set the ESP flag when using UEFI --- vmdb/plugins/grub_plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vmdb/plugins/grub_plugin.py b/vmdb/plugins/grub_plugin.py index 60b777b..5b2e43d 100644 --- a/vmdb/plugins/grub_plugin.py +++ b/vmdb/plugins/grub_plugin.py @@ -174,6 +174,8 @@ class GrubStepRunner(vmdb.StepRunnerInterface): self.bind_mount_many(chroot, ["/dev", "/sys", "/proc"], state) if efi_dev: + pn = efi_dev[-1] + vmdb.runcmd(["parted", "-s", image_dev, "set", pn, "esp", "on" ]) self.mount(chroot, efi_dev, "/boot/efi", state) elif prep_dev: pn = prep_dev[-1] -- cgit v1.2.1