[lxc-devel] [lxc/lxc] 7ed86e: ubuntu: Fix regression in post-process

GitHub noreply at github.com
Thu Nov 28 00:49:51 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 7ed86e448617d8c1216f6e642767426769e5343e
      https://github.com/lxc/lxc/commit/7ed86e448617d8c1216f6e642767426769e5343e
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2013-11-27 (Wed, 27 Nov 2013)

  Changed paths:
    M templates/lxc-ubuntu.in

  Log Message:
  -----------
  ubuntu: Fix regression in post-process

THe recent reorg of lxc-ubuntu introduced some package installation in
post-process but without first disabling service startup.

As a result, if the cache is a bit out of date and a ssh update is
available, post-process will apply that update (as it does apt-get
install ssh vim) which in turn will attemp to start sshd. This will
either lead to ssh on the host being restarted or if there's no sshd on
the host, will fail the container creation as the postinst will get an
error from upstart.

The fix is very simply to add the same policy-rc.d trick when running
post-process.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list