]> git.ipfire.org Git - thirdparty/lxc.git/commit
ubuntu: Fix regression in post-process
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Nov 2013 00:46:18 +0000 (19:46 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 28 Nov 2013 00:46:18 +0000 (19:46 -0500)
commit7ed86e448617d8c1216f6e642767426769e5343e
tree440a0af013fdc1a3d5bad9b829bd7b5e31bc67f4
parentcf642e1085063cc0081335169ffd83d7cab3899c
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@ubuntu.com>
templates/lxc-ubuntu.in