diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-15 18:55:37 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-15 18:55:37 +0100 |
commit | 9be25a86f316b5b8527a7a2380e1d76ba754492a (patch) | |
tree | c04b570d4b602a2dbb95058349475418140e8525 | |
parent | fd57391d17eb8f22197d78c93664068be4a2c856 (diff) | |
download | vmdebootstrap-9be25a86f316b5b8527a7a2380e1d76ba754492a.tar.gz |
Always install acpid
Otherwise shutdown, reboot don't work reliably.
-rwxr-xr-x | vmdebootstrap | 6 |
1 files 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) |