]> git.siccegge.de Git - forks/vmdebootstrap.git/commitdiff
Always install acpid
authorLars Wirzenius <liw@liw.fi>
Mon, 15 Apr 2013 17:55:37 +0000 (18:55 +0100)
committerLars Wirzenius <liw@liw.fi>
Mon, 15 Apr 2013 17:55:37 +0000 (18:55 +0100)
Otherwise shutdown, reboot don't work reliably.

vmdebootstrap

index 7169a5f723f188d80abf8b89d95b70ff821e4d36..ecb6df82e8d0764599a66d1ef2d5d88b5ecf34d8 100755 (executable)
@@ -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)