mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
No need for virtualization stanza in virtualbox
This commit is contained in:
parent
264f33d0e5
commit
81a5069733
2 changed files with 0 additions and 8 deletions
|
@ -10,7 +10,6 @@ class Manifest(base.Manifest):
|
|||
|
||||
def parse(self, data):
|
||||
super(Manifest, self).parse(data)
|
||||
self.virtualization = data['virtualization']
|
||||
self.image = data['image']
|
||||
if 'loopback_dir' not in self.volume and self.volume['backing'].lower() == 's3':
|
||||
self.volume['loopback_dir'] = '/tmp'
|
||||
|
|
|
@ -38,10 +38,3 @@ class ConfigureGrub(Task):
|
|||
info.bootstrap_device['partitions']['root_path']])
|
||||
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-grub'])
|
||||
|
||||
from common.tools import sed_i
|
||||
if info.manifest.virtualization == 'virtio':
|
||||
grub_cfg = os.path.join(info.root, 'boot/grub/grub.cfg')
|
||||
sed_i(grub_cfg, 'sda', 'vda')
|
||||
device_map = os.path.join(info.root, 'boot/grub/device.map')
|
||||
sed_i(device_map, 'sda', 'vda')
|
||||
|
|
Loading…
Add table
Reference in a new issue