Skip to content
Snippets Groups Projects
Commit c0b9213d authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

linux-initrd: Do not create /etc/resolv.conf.

* guix/build/linux-initrd.scm (configure-qemu-networking): Don't create
  /etc/resolv.conf.
parent 25290d27
No related branches found
No related tags found
No related merge requests found
......@@ -384,11 +384,9 @@ (define* (configure-qemu-networking #:optional (interface "eth0"))
(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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment