~ruther/guix-local

c0b9213dbbf2d54c58e8fb62a52efc98f184d859 — Ludovic Courtès 11 years ago 25290d2
linux-initrd: Do not create /etc/resolv.conf.

* guix/build/linux-initrd.scm (configure-qemu-networking): Don't create
  /etc/resolv.conf.
1 files changed, 3 insertions(+), 5 deletions(-)

M guix/build/linux-initrd.scm
M guix/build/linux-initrd.scm => guix/build/linux-initrd.scm +3 -5
@@ 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)))