From: Evgeni Golov Date: Thu, 15 Dec 2016 18:59:13 +0000 (+0100) Subject: don't try to get stuff from /usr/lib/systemd on the host X-Git-Tag: lxc-2.1.0~223^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=000f7f1c561b86c3cc5a275d06e2ff6e7fc03452;p=thirdparty%2Flxc.git don't try to get stuff from /usr/lib/systemd on the host it might not even be there… Signed-off-by: Evgeni Golov --- diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 07743976a..59180df4f 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -101,7 +101,7 @@ EOF ln -s /dev/null $rootfs/etc/systemd/system/proc-sys-fs-binfmt_misc.automount ln -s /dev/null $rootfs/etc/systemd/system/console-shell.service ln -s /dev/null $rootfs/etc/systemd/system/systemd-vconsole-setup.service - sed -e 's/ConditionPathExists=.*//' /usr/lib/systemd/system/getty@.service > $rootfs/etc/systemd/system/getty@.service + sed -e 's/ConditionPathExists=.*//' $rootfs/usr/lib/systemd/system/getty@.service > $rootfs/etc/systemd/system/getty@.service ln -s getty@.service $rootfs/etc/systemd/system/getty@tty1.service ln -s ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@console.service ln -s -f ../getty@.service $rootfs/etc/systemd/system/getty.target.wants/getty@tty1.service @@ -111,7 +111,7 @@ EOF # 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 /usr/lib/systemd/system/poweroff.target $rootfs/usr/lib/systemd/system/sigpwr.target + cp $rootfs/usr/lib/systemd/system/poweroff.target $rootfs/usr/lib/systemd/system/sigpwr.target touch $rootfs/etc/sysconfig/kernel