'install package in DEB file onto system '
'(not from mirror)',
metavar='DEB')
+ self.settings.boolean(['no-kernel'], 'do not install a linux package')
self.settings.boolean(['enable-dhcp'], 'enable DHCP on eth0')
self.settings.string(['root-password'], 'set root password',
metavar='PASSWORD')
def debootstrap(self, rootdir):
self.message('Debootstrapping')
- if self.settings['arch'] == 'i386':
- kernel_arch = '686'
- else:
- kernel_arch = self.settings['arch']
- kernel_image = 'linux-image-2.6-%s' % kernel_arch
+ include = self.settings['package']
+
+ if not self.settings['no-kernel']:
+ if self.settings['arch'] == 'i386':
+ kernel_arch = '686'
+ else:
+ kernel_arch = self.settings['arch']
+ kernel_image = 'linux-image-2.6-%s' % kernel_arch
+ include.append(kernel_image)
- include = [kernel_image] + self.settings['package']
if self.settings['sudo'] and 'sudo' not in include:
include.append('sudo')