Force grub-install in partition
This commit is contained in:
parent
84654dd50d
commit
f442ac6ad9
|
@ -144,7 +144,7 @@ GRUB_DISABLE_LINUX_UUID=false
|
||||||
fake_root = os.open("/", os.O_RDONLY)
|
fake_root = os.open("/", os.O_RDONLY)
|
||||||
os.fchdir(fake_root)
|
os.fchdir(fake_root)
|
||||||
os.system(
|
os.system(
|
||||||
"grub-install /dev/rbd/{}/{}_{}".format(root_disk['pool'], vm_name, root_disk['disk_id'])
|
"grub-install --force /dev/rbd/{}/{}_{}".format(root_disk['pool'], vm_name, root_disk['disk_id'])
|
||||||
)
|
)
|
||||||
os.system(
|
os.system(
|
||||||
"update-grub"
|
"update-grub"
|
||||||
|
|
Loading…
Reference in New Issue