From 9be25a86f316b5b8527a7a2380e1d76ba754492a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 15 Apr 2013 18:55:37 +0100 Subject: [PATCH] Always install acpid Otherwise shutdown, reboot don't work reliably. --- vmdebootstrap | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.39.5