From: Michael H. Warfield Date: Tue, 3 Jun 2014 16:59:20 +0000 (-0400) Subject: lxc-fedora.in: Correct some systemd target setups. X-Git-Tag: lxc-1.0.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232ba3364a559d99dd06981686f55ec0b97bbee0;p=thirdparty%2Flxc.git lxc-fedora.in: Correct some systemd target setups. Set the halt.target action to be sigpwr.target. This allows SIGPWR to properly shut the container down from lxc-stop. Renable the systemd-journald.service. Signed-off-by: Michael H. Warfield Acked-by: Stéphane Graber --- diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index 27aeeb0ec..a1393c298 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -359,10 +359,9 @@ configure_fedora_systemd() rm -f ${rootfs_path}/etc/systemd/system/default.target touch ${rootfs_path}/etc/fstab chroot ${rootfs_path} ln -s /dev/null /etc/systemd/system/udev.service - chroot ${rootfs_path} ln -s /dev/null /etc/systemd/system/systemd-journald.service chroot ${rootfs_path} ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target # Make systemd honor SIGPWR - chroot ${rootfs_path} ln -s /usr/lib/systemd/system/halt.target /etc/systemd/system/ + chroot ${rootfs_path} ln -s /usr/lib/systemd/system/halt.target /etc/systemd/system/sigpwr.target #dependency on a device unit fails it specially that we disabled udev # sed -i 's/After=dev-%i.device/After=/' ${rootfs_path}/lib/systemd/system/getty\@.service #