summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vmdb/plugins/grub_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/vmdb/plugins/grub_plugin.py b/vmdb/plugins/grub_plugin.py
index 1bfdda8..b28d502 100644
--- a/vmdb/plugins/grub_plugin.py
+++ b/vmdb/plugins/grub_plugin.py
@@ -152,6 +152,7 @@ class GrubStepRunner(vmdb.StepRunnerInterface):
tag = values["tag"] or values["root-fs"] or None
root_dev = state.tags.get_dev(tag)
chroot = state.tags.get_builder_mount_point(tag)
+ self.bind_mount_many(chroot, ["/dev", "/sys", "/proc"], state)
image_dev = values["image-dev"] or None
if image_dev is None:
@@ -174,7 +175,6 @@ class GrubStepRunner(vmdb.StepRunnerInterface):
quiet = values["quiet"]
- 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"])