From 77e63fafa5736c235920b8deef73afbf733a7fda Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 21 Sep 2012 16:55:56 +0200 Subject: nspawn: document why we don't check resolv.conf mount errors --- src/nspawn/nspawn.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nspawn') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index d181e3b338..959df4e0d8 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); -- cgit v1.2.3-54-g00ecf