bootstrap-vz/providers/virtualbox/tasks/boot.py

17 lines
516 B
Python
Raw Normal View History

2013-07-10 10:49:45 +02:00
from base import Task
from common import phases
class ConfigureGrub(Task):
description = 'Configuring grub'
phase = phases.system_modification
def run(self, info):
from common.tools import log_check_call
2013-07-30 11:21:09 +02:00
log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u'])
log_check_call(['/usr/sbin/grub-install',
'--boot-directory='+info.root+"/boot/",
2013-08-11 18:17:06 +02:00
info.bootstrap_device['path']])
2013-08-01 11:19:20 +02:00
2013-07-30 13:03:08 +02:00
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-grub'])