linux-initrd: Do not create /etc/resolv.conf.
authorLudovic Courtès <ludo@gnu.org>
Fri, 15 Aug 2014 14:06:21 +0000 (16:06 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 15 Aug 2014 14:26:28 +0000 (16:26 +0200)
* guix/build/linux-initrd.scm (configure-qemu-networking): Don't create
  /etc/resolv.conf.

guix/build/linux-initrd.scm

index 662f796..bce2899 100644 (file)
@@ -384,11 +384,9 @@ networking values.)  Return #t if INTERFACE is up, #f otherwise."
     (set-network-interface-address sock interface address)
     (set-network-interface-flags sock interface (logior flags IFF_UP))
 
-    (unless (file-exists? "/etc")
-      (mkdir "/etc"))
-    (call-with-output-file "/etc/resolv.conf"
-      (lambda (p)
-        (display "nameserver 10.0.2.3\n" p)))
+    ;; Hello!  We used to create /etc/resolv.conf here, with "nameserver
+    ;; 10.0.2.3\n".  However, with Linux-libre 3.16, we're getting ENOSPC.
+    ;; And since it's actually unnecessary, it's gone.
 
     (logand (network-interface-flags sock interface) IFF_UP)))