mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Fix required packages
This commit is contained in:
parent
d6502089e2
commit
c744196d2f
1 changed files with 2 additions and 15 deletions
|
@ -11,7 +11,7 @@ class HostPackages(Task):
|
||||||
after = [packages.HostPackages]
|
after = [packages.HostPackages]
|
||||||
|
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
info.host_packages.update(['qemu-utils', 'parted', 'grub2', 'sysv-rc', 'kpartx'])
|
info.host_packages.update(['qemu-utils', 'parted', 'kpartx', 'sysv-rc'])
|
||||||
if 'xfs' in (p.filesystem for p in info.volume.partition_map.partitions):
|
if 'xfs' in (p.filesystem for p in info.volume.partition_map.partitions):
|
||||||
info.host_packages.add('xfsprogs')
|
info.host_packages.add('xfsprogs')
|
||||||
|
|
||||||
|
@ -25,20 +25,7 @@ class ImagePackages(Task):
|
||||||
manifest = info.manifest
|
manifest = info.manifest
|
||||||
include, exclude = info.img_packages
|
include, exclude = info.img_packages
|
||||||
# Add some basic packages we are going to need
|
# Add some basic packages we are going to need
|
||||||
include.update(['parted',
|
include.update(['grub2'])
|
||||||
'kpartx',
|
|
||||||
# Needed for the init scripts
|
|
||||||
'file',
|
|
||||||
# isc-dhcp-client doesn't work properly with ec2
|
|
||||||
'dhcpcd',
|
|
||||||
'chkconfig',
|
|
||||||
'openssh-client',
|
|
||||||
'grub2'
|
|
||||||
])
|
|
||||||
|
|
||||||
exclude.update(['isc-dhcp-client',
|
|
||||||
'isc-dhcp-common',
|
|
||||||
])
|
|
||||||
|
|
||||||
# In squeeze, we need a special kernel flavor for xen
|
# In squeeze, we need a special kernel flavor for xen
|
||||||
kernels = {'squeeze': {'amd64': 'linux-image-amd64',
|
kernels = {'squeeze': {'amd64': 'linux-image-amd64',
|
||||||
|
|
Loading…
Add table
Reference in a new issue