]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix sshd template on systems with systemd 833/head
authorNikolay Martynov <mar.kolya@gmail.com>
Sun, 21 Feb 2016 06:16:15 +0000 (01:16 -0500)
committerNikolay Martynov <mar.kolya@gmail.com>
Sun, 21 Feb 2016 06:16:15 +0000 (01:16 -0500)
commit7e8aa95e439761d21c8667e503522a21b027a376
treedd5d2d5064c53d47b6382b14cfa75cf1f2c95896
parent63f2635db09aeb1a54b9fcc323e98d174419228b
Fix sshd template on systems with systemd

Systems with systemd have /sbin/init as a symlink pointing to real init.
Sshd template tries to bind-mount special init implementation.
The problem is that one cannot bind-mount to a location that is a symlink.

Fix this by deferencing /sbin/init symling and using that as bind-mount location.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
templates/lxc-sshd.in