From: Evgeni Golov Date: Thu, 15 Dec 2016 19:02:10 +0000 (+0100) Subject: lxc-opensuse: rm poweroff.target -> sigpwr.target copy X-Git-Tag: lxc-2.1.0~223^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1357%2Fhead;p=thirdparty%2Flxc.git lxc-opensuse: rm poweroff.target -> sigpwr.target copy Given commit 330ae3d350e060e5702a0e5ef5d0faeeeea8df6e: lxccontainer: detect if we should send SIGRTMIN+3 This is required by systemd to cleanly shutdown. Other init systems should not have SIGRTMIN+3 in the blocked signals set. we should stop poking around with sigpwr.target for systemd. Signed-off-by: Evgeni Golov --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 59180df4f..66176c314 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -109,10 +109,6 @@ 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 $rootfs/usr/lib/systemd/system/poweroff.target $rootfs/usr/lib/systemd/system/sigpwr.target - touch $rootfs/etc/sysconfig/kernel echo "Please change root-password !"