self.create_users(rootdir)
self.remove_udev_persistent_rules(rootdir)
self.setup_networking(rootdir)
- self.configure_apt(rootdir)
+ if self.settings['configure-apt']:
+ self.configure_apt(rootdir)
self.customize(rootdir)
if self.settings['image']:
if self.settings['extlinux']:
logging.debug('configure apt %s' % conf)
f = open(conf, 'w')
f.write('''
- deb %(mirror)s %(distribution)s main
- #deb-src %(mirror)s %(distribution)s main
- ''' % {
+deb %(mirror)s %(distribution)s main
+#deb-src %(mirror)s %(distribution)s main
+''' % {
'mirror': self.settings['mirror'],
'distribution': self.settings['distribution']
})
of processors used per run.
.IP \-\-configure\-apt
Use the specified mirror and distribution to create a suitable apt source inside
-the VM.
+the VM. Can be useful if debootstrap fails to create it automatically.
.SH Configuration files and settings:
.IP \-\-dump-config
write out the entire current configuration