Skip to content

Instantly share code, notes, and snippets.

@ymmt2005
Created January 14, 2013 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ymmt2005/4528492 to your computer and use it in GitHub Desktop.
Save ymmt2005/4528492 to your computer and use it in GitHub Desktop.
Patch for libvirt virt-install script to install Ubuntu with image ISO file and w/o networking.
--- OSDistro.py.orig 2012-06-15 06:05:53.966087512 +0000
+++ OSDistro.py 2012-06-15 06:09:42.362805372 +0000
@@ -951,7 +951,11 @@
# regular tree:
# http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-amd64/
+ def _set_media_paths(self):
+ self._hvm_kernel_paths = [ ("vmlinuz", "initrd.gz") ]
+
def isValidStore(self, fetcher, progresscb):
+ return True
# For regular trees
if fetcher.hasFile("%s/MANIFEST" % self._prefix):
filename = "%s/MANIFEST" % self._prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment