Force grub-install in partition

This commit is contained in:
Joshua Boniface 2019-12-07 19:41:53 -05:00
parent 84654dd50d
commit f442ac6ad9
1 changed files with 1 additions and 1 deletions

View File

@ -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"