kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] kvm tools: Don't copy network autoconfiguration script
@ 2011-09-14 16:28 Sasha Levin
  2011-09-14 16:28 ` [PATCH 2/2] kvm tools: Use host's resolv.conf within the guest Sasha Levin
  0 siblings, 1 reply; 10+ messages in thread
From: Sasha Levin @ 2011-09-14 16:28 UTC (permalink / raw)
  To: penberg; +Cc: kvm, mingo, asias.hejun, gorcunov, Sasha Levin

Network autoconfiguration was moved to the kernel, but the setup code still
tried to copy the script over to the rootfs. This prevented from /virt/ to
be properly created.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 tools/kvm/builtin-setup.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/tools/kvm/builtin-setup.c b/tools/kvm/builtin-setup.c
index c93eec3..6b8eb5b 100644
--- a/tools/kvm/builtin-setup.c
+++ b/tools/kvm/builtin-setup.c
@@ -129,15 +129,6 @@ static int copy_init(const char *guestfs_name)
 	return copy_file("guest/init", path);
 }
 
-static int copy_net(const char *guestfs_name)
-{
-	char path[PATH_MAX];
-
-	snprintf(path, PATH_MAX, "%s%s%s/virt/setnet.sh", HOME_DIR, KVM_PID_FILE_PATH, guestfs_name);
-
-	return copy_file("guest/setnet.sh", path);
-}
-
 static int make_guestfs_symlink(const char *guestfs_name, const char *path)
 {
 	char target[PATH_MAX];
@@ -195,10 +186,6 @@ static int do_setup(const char *guestfs_name)
 		make_guestfs_symlink(guestfs_name, guestfs_symlinks[i]);
 	}
 
-	ret = copy_net(guestfs_name);
-	if (ret < 0)
-		return ret;
-
 	return copy_init(guestfs_name);
 }
 
-- 
1.7.6.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-09-15  7:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 16:28 [PATCH 1/2] kvm tools: Don't copy network autoconfiguration script Sasha Levin
2011-09-14 16:28 ` [PATCH 2/2] kvm tools: Use host's resolv.conf within the guest Sasha Levin
2011-09-15  5:29   ` Pekka Enberg
2011-09-15  5:36     ` Sasha Levin
2011-09-15  5:44       ` Pekka Enberg
2011-09-15  6:00         ` Sasha Levin
2011-09-15  6:04           ` Pekka Enberg
2011-09-15  6:04             ` Sasha Levin
2011-09-15  6:22               ` Pekka Enberg
2011-09-15  7:11                 ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).