nspawn: resolv.conf might not be created initially (#4799)
authorFranck Bui <fbui@suse.com>
Wed, 7 Dec 2016 20:36:39 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Dec 2016 20:36:39 +0000 (21:36 +0100)
commit5367354dae90f0901ec3b96cbbc9f96bf4a71d11
treeabf2901eac4bb0a46b84360a85f6660cedcbb3c0
parente332833f070481223b949f9cc21d7e619e17e234
nspawn: resolv.conf might not be created initially (#4799)

This might happen that resolv.conf is missing in a minimal rootfs and in this
case the following warning is emitted:

 Failed to mount n/a on /mnt/etc/resolv.conf (MS_BIND ""): No such file or directory

This patch fixes this case.
src/nspawn/nspawn.c