From 9497e6223cdf59eab22ee5b43b61aa9c91a93cda Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Sun, 28 Jun 2015 12:03:02 +0100 Subject: [PATCH] Let acpid be omitted Debian Bug: #784638 --- vmdebootstrap | 6 +++++- vmdebootstrap.8.in | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/vmdebootstrap b/vmdebootstrap index add3d44..bc5b887 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -184,6 +184,10 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth self.settings.boolean( ['pkglist'], 'Create a list of package names included in the image.') + self.settings.boolean( + ['no-acpid'], + 'do not install the acpid package', + default=False) def process_args(self, args): # pylint: disable=too-many-branches,too-many-statements if not self.settings['image'] and not self.settings['tarball']: @@ -448,7 +452,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth include = self.settings['package'] - if not self.settings['foreign']: + if not self.settings['foreign'] and not self.settings['no-acpid']: include.append('acpid') if self.settings['grub']: diff --git a/vmdebootstrap.8.in b/vmdebootstrap.8.in index aecc792..34dfe02 100644 --- a/vmdebootstrap.8.in +++ b/vmdebootstrap.8.in @@ -233,6 +233,9 @@ available. Disable extlinux installation and configure grub2 instead. grub2 will be added to the list of packages to install. update-grub will be called once the debootstrap is complete and grub-install will be called in the image. +.IP \-\-no\-acpid +Disable installation of acpid if not required, otherwise acpid will be +installed if \-\-foreign is not used. .IP \-\-pkglist Output a list of package names installed inside the image. Useful if you need to track the relevant source packages used inside the image for -- 2.39.2