]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Add --package option.
authorLars Wirzenius <liw@liw.fi>
Sun, 15 May 2011 09:53:44 +0000 (10:53 +0100)
committerLars Wirzenius <liw@liw.fi>
Sun, 15 May 2011 09:53:44 +0000 (10:53 +0100)
vmdebootstrap
vmdebootstrap.8

index 84ee0079749ebbd98ba2b1af76ae3a89670db3c5..7847c2331f3027fc9ad19fdc9994fa3688ef7ad1 100755 (executable)
@@ -52,6 +52,8 @@ class VmDebootstrap(cliapp.Application):
                                          'release to use (%default)',
                                          metavar='NAME',
                                          default='stable')
+        self.settings.add_string_list_setting(['package'],
+                                              'install PACKAGE onto system')
 
     def process_args(self, args):
         if not self.settings['image']:
@@ -150,7 +152,7 @@ class VmDebootstrap(cliapp.Application):
             kernel_arch = self.settings['arch']
         kernel_image = 'linux-image-2.6-%s' % kernel_arch
 
-        include = [kernel_image]
+        include = [kernel_image] + self.settings['package']
 
         self.runcmd(['debootstrap', 
                      '--arch=%s' % self.settings['arch'],
index 72ba4941f1621b536e98bf8a165fb2614fa30156..ca173c7fea9b504237d4c64f83d0aaddc33bec23 100644 (file)
@@ -109,6 +109,12 @@ e.g., you can build an i386 image on amd64, but not arm.
 .TP
 .BR \-\-distribution =\fINAME
 Use a given release of Debian.
+.TP
+.BR \-\-package =\fIPACKAGE
+Install 
+.I PACKAGE
+on the system.
+Can be given multiple times.
 .SH EXAMPLE
 To create an image for the stable release of Debian:
 .nf