From: Lennart Poettering Date: Fri, 21 Sep 2012 14:55:56 +0000 (+0200) Subject: nspawn: document why we don't check resolv.conf mount errors X-Git-Tag: v191~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=77e63fafa5736c235920b8deef73afbf733a7fda;p=elogind.git nspawn: document why we don't check resolv.conf mount errors --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index d181e3b33..959df4e0d 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -404,6 +404,8 @@ static int setup_resolv_conf(const char *dest) { if (!where) return log_oom(); + /* We don't really care for the results of this really. If it + * fails, it fails, but meh... */ if (mount("/etc/resolv.conf", where, "bind", MS_BIND, NULL) >= 0) mount("/etc/resolv.conf", where, "bind", MS_BIND|MS_REMOUNT|MS_RDONLY, NULL);