diff options
author | Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> | 2021-01-15 12:57:17 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-01-16 09:11:02 +0200 |
commit | 0965653d2ee01433dc1f8419bbb285c4fc331dec (patch) | |
tree | 932b01b688b647f59207d25159cf99bedfbe767c | |
parent | d61433def89edf698118a77f02116dd53a453d29 (diff) | |
download | vmdb2-0965653d2ee01433dc1f8419bbb285c4fc331dec.tar.gz |
feat: Set the ESP flag when using UEFI
-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] |