Commit 8f311267 by Evgeni Golov Committed by Stéphane Graber

lxc-opensuse: rm poweroff.target -> sigpwr.target copy

Given commit 330ae3d3: 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: 's avatarEvgeni Golov <evgeni@debian.org>
parent 7cbbb4a9
...@@ -101,10 +101,6 @@ EOF ...@@ -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@tty3.service
ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty4.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 touch $rootfs/etc/sysconfig/kernel
echo "Please change root-password !" echo "Please change root-password !"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment