1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 from VMBuilder.plugins.ubuntu.gutsy import Gutsy
20
22 virtio_net = True
23 ec2_kernel_info = { 'i386' : 'aki-6e709707', 'amd64' : 'aki-6f709706' }
24 ec2_ramdisk_info = { 'i386' : 'ari-6c709705', 'amd64' : 'ari-61709708' }
25
27 self.context.addpkg += ['ec2-init',
28 'openssh-server',
29 'ec2-modules',
30 'standard^',
31 'ec2-ami-tools',
32 'update-motd']
33
34 if not self.context.ppa:
35 self.context.ppa = []
36
37 self.context.ppa += ['ubuntu-on-ec2/ppa']
38
40
41 if self.context.arch == 'i386':
42 self.run_in_target('apt-get' ,'--force-yes', '-y', 'install', 'libc6-xen')
43 self.run_in_target('apt-get','--purge','--force-yes', '-y', 'remove', 'libc6-i686')
44 self.install_from_template('/etc/ld.so.conf.d/libc6-xen.conf', 'xen-ld-so-conf')
45 self.install_from_template('/etc/event.d/xvc0', 'upstart', { 'console' : 'xvc0' })
46 self.run_in_target('update-rc.d', '-f', 'hwclockfirst.sh', 'remove')
47 self.install_from_template('/etc/update-motd.d/51_update-motd', '51_update-motd-hardy')
48 self.run_in_target('chmod', '755', '/etc/update-motd.d/51_update-motd')
49 self.install_from_template('/etc/ec2-init/is-compat-env', 'is-compat-env')
50
52 return '/boot/vmlinuz-2.6.24-19-xen'
53
55 return '/boot/initrd.img-2.6.24-19-xen'
56
59