diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-08-15 16:06:21 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-08-15 16:26:28 +0200 |
commit | c0b9213dbbf2d54c58e8fb62a52efc98f184d859 (patch) | |
tree | 747e910dfd5be4add8c419f7136ff75cddbbf069 /guix/build | |
parent | 25290d2766d4bc5c2edd1cddd053de74a93cc4e3 (diff) | |
download | gnu-guix-c0b9213dbbf2d54c58e8fb62a52efc98f184d859.tar gnu-guix-c0b9213dbbf2d54c58e8fb62a52efc98f184d859.tar.gz |
linux-initrd: Do not create /etc/resolv.conf.
* guix/build/linux-initrd.scm (configure-qemu-networking): Don't create
/etc/resolv.conf.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/linux-initrd.scm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm index 662f7967e3..bce289987b 100644 --- a/guix/build/linux-initrd.scm +++ b/guix/build/linux-initrd.scm @@ -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))) |