Skip to content

Commit

Permalink
don't try to get stuff from /usr/lib/systemd on the host
Browse files Browse the repository at this point in the history
it might not even be there…

Signed-off-by: Evgeni Golov <evgeni@debian.org>
  • Loading branch information
evgeni authored and stgraber committed Jan 3, 2017
1 parent 7638f5f commit e08c121
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/lxc-opensuse.in
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit e08c121

Please sign in to comment.