From ab4157ff0a9481a1ed647f1f7177f11448f16792 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 15 May 2011 10:53:44 +0100 Subject: [PATCH] Add --package option. --- vmdebootstrap | 4 +++- vmdebootstrap.8 | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/vmdebootstrap b/vmdebootstrap index 84ee007..7847c23 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -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'], diff --git a/vmdebootstrap.8 b/vmdebootstrap.8 index 72ba494..ca173c7 100644 --- a/vmdebootstrap.8 +++ b/vmdebootstrap.8 @@ -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 -- 2.39.5