chiark / gitweb /
nspawn: document why we don't check resolv.conf mount errors
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 14:55:56 +0000 (16:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Sep 2012 14:55:56 +0000 (16:55 +0200)
src/nspawn/nspawn.c

index d181e3b338564c76de9caa57832fdb991005fb85..959df4e0d836f79cbd4fb7fa955f1ac4ae2a57bd 100644 (file)
@@ -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);