From: Cedric Bosdonnat Date: Tue, 10 Sep 2013 16:00:41 +0000 (+0200) Subject: Fixed opensuse template to make lxc-shutdown work. X-Git-Tag: lxc-1.0.0.alpha2~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98f5f7e2c54fc003f81b2164adf3c7bd8a104556;p=thirdparty%2Flxc.git Fixed opensuse template to make lxc-shutdown work. The fix is described by: https://wiki.archlinux.org/index.php/Linux_Containers#Container_cannot_be_shutdown_if_using_systemd Signed-off-by: Cedric Bosdonnat Acked-by: Stéphane Graber --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 1fc7e21a6..c8004fd30 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -88,6 +88,9 @@ EOF ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty3.service ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty4.service + # copy host poweroff target as sigpwr target to make shutdown work + # see https://wiki.archlinux.org/index.php/Linux_Containers#Container_cannot_be_shutdown_if_using_systemd + cp /usr/lib/systemd/system/poweroff.target $rootfs/usr/lib/systemd/system/sigpwr.target touch $rootfs/etc/sysconfig/kernel