From: Lars Wirzenius Date: Mon, 15 Apr 2013 17:55:37 +0000 (+0100) Subject: Always install acpid X-Git-Url: https://git.siccegge.de//index.cgi?p=forks%2Fvmdebootstrap.git;a=commitdiff_plain;h=9be25a86f316b5b8527a7a2380e1d76ba754492a Always install acpid Otherwise shutdown, reboot don't work reliably. --- diff --git a/vmdebootstrap b/vmdebootstrap index 7169a5f..ecb6df8 100755 --- a/vmdebootstrap +++ b/vmdebootstrap @@ -185,6 +185,8 @@ class VmDebootstrap(cliapp.Application): def debootstrap(self, rootdir): self.message('Debootstrapping') + necessary_packages = ['acpid'] + include = self.settings['package'] if not self.settings['no-kernel']: @@ -199,8 +201,8 @@ class VmDebootstrap(cliapp.Application): include.append('sudo') args = ['debootstrap', '--arch=%s' % self.settings['arch']] - if include: - args.append('--include=%s' % ','.join(include)) + args.append( + '--include=%s' % ','.join(necessary_packages + include)) args += [self.settings['distribution'], rootdir, self.settings['mirror']] self.runcmd(args)