]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: rm poweroff.target -> sigpwr.target copy
authorEvgeni Golov <evgeni@debian.org>
Thu, 15 Dec 2016 19:02:10 +0000 (20:02 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 3 Jan 2017 15:51:42 +0000 (10:51 -0500)
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 <evgeni@debian.org>
templates/lxc-opensuse.in

index 80ee4385255f58d89110269de534e5c7d8972361..b840b16c46ea44b5ea3b709554bec9f68b14c77e 100644 (file)
@@ -101,10 +101,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 !"