diff options
-rw-r--r-- | vmdb/plugins/grub_plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
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] |