[Libguestfs] [PATCH] appliance: Fix /etc/resolv.conf

Richard W.M. Jones rjones at redhat.com
Tue May 18 22:26:23 UTC 2010


-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
-------------- next part --------------
>From 9c65e61670ce960f13dfad7ff9686779b045b964 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones at redhat.com>
Date: Tue, 18 May 2010 23:18:35 +0100
Subject: [PATCH 1/2] appliance: Fix /etc/resolv.conf

Since changing to use link local address
(commit fbf29976b33a69c64dc7847c54454bf2cfa5fde6)
we have included an incorrect resolv.conf file in the appliance
which points to the old (qemu) DNS server.  This commit changes
to use the new DNS server.
---
 appliance/make.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/appliance/make.sh.in b/appliance/make.sh.in
index 0dbce56..9150f55 100755
--- a/appliance/make.sh.in
+++ b/appliance/make.sh.in
@@ -162,7 +162,7 @@ __EOF__
       @FEBOOTSTRAP_RUN@ initramfs -- touch /etc/fstab
   fi
 
-  echo nameserver 10.0.2.3 > resolv.conf.new
+  echo nameserver 169.254.2.3 > resolv.conf.new
   @FEBOOTSTRAP_INSTALL@ initramfs resolv.conf.new /etc/resolv.conf 0644 root.root
   rm resolv.conf.new
 
-- 
1.6.6.1



More information about the Libguestfs mailing list