]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
templates: rm halt.target -> sigpwr.target symlink 1162/head
authorChristian Brauner <cbrauner@suse.de>
Wed, 31 Aug 2016 21:53:50 +0000 (23:53 +0200)
committerChristian Brauner <cbrauner@suse.de>
Wed, 31 Aug 2016 21:53:50 +0000 (23:53 +0200)
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 symlinking halt.target to sigpwr.target for systemd.

Signed-off-by: Christian Brauner <cbrauner@suse.de>
templates/lxc-debian.in
templates/lxc-oracle.in

index 18d8422beaa065b0f17b253de577ac6152bae6d2..e5ad10d5a612fc742e259849d224e81c11197a4e 100644 (file)
@@ -256,8 +256,6 @@ configure_debian_systemd()
     chroot "${rootfs}" ln -s /dev/null /etc/systemd/system/udev.service
     chroot "${rootfs}" ln -s /dev/null /etc/systemd/system/systemd-udevd.service
     chroot "${rootfs}" ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
-    # Make systemd honor SIGPWR
-    chroot "${rootfs}" ln -s /lib/systemd/system/halt.target /etc/systemd/system/sigpwr.target
     # Setup getty service on the ttys we are going to allow in the
     # default config.  Number should match lxc.tty
     ( cd "${rootfs}/etc/systemd/system/getty.target.wants"
index eb01ecbf8ad8c2f7a47459c14f8e4bd96bd7b9c7..20c212b0011ba44d72cbd2af88c6d4ca9ac5e54f 100644 (file)
@@ -169,9 +169,6 @@ EOF
         rm -f $container_rootfs/usr/lib/systemd/system/sysinit.target.wants/kmod-static-nodes.service
         chroot $container_rootfs systemctl -q disable graphical.target
         chroot $container_rootfs systemctl -q enable multi-user.target
-        if [ ! -e $container_rootfs/etc/systemd/system/sigpwr.target ]; then
-            chroot $container_rootfs ln -s /usr/lib/systemd/system/halt.target /etc/systemd/system/sigpwr.target
-        fi
 
         # systemd in userns won't be able to set /proc/self/oom_score_adj which
         # prevents the dbus service from starting