nspawn: fix condition for mounting resolv.conf (#4622)
authorChristian Hesse <mail@eworm.de>
Wed, 9 Nov 2016 03:01:26 +0000 (04:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Nov 2016 03:01:26 +0000 (22:01 -0500)
commit7debb05dbe1f157e5f07c9bffa98fbe33e1b514e
treeb9f10bf341eb6d28508e5b7a0788b04b10d8cf52
parentaf964954c6a44bd664efe89052ced9584a966baa
nspawn: fix condition for mounting resolv.conf (#4622)

The file /usr/lib/systemd/resolv.conf can be stale, it does not tell us
whether or not systemd-resolved is running or not.
So check for /run/systemd/resolve/resolv.conf as well, which is created
at runtime and hence is a better indication.
src/nspawn/nspawn.c