[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH] Fix for Ubuntu netboot image builds with d-i enabled





On Wed, Sep 9, 2009 at 2:41 PM, Cody A.W. Somerville <cody.somerville@canonical.com> wrote:
Hello,

Please accept this patch to fix an issue with the formation of the URL used fetch d-i files for Ubuntu netboot build.

Ooops. Sent the wrong version of the patch. Please see patch attached to this e-mail which correctly sets DI_REMOTE_BASE and DI_REMOTE_BASE_GTK as well.

Cheers,

--
Cody A.W. Somerville
Software Systems Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1-781-850-2087
Cell: +1-506-471-8402
Email: cody.somerville@canonical.com
diff -Nru live-helper-1.0.5/helpers/lh_binary_debian-installer live-helper-1.0.5/helpers/lh_binary_debian-installer
--- live-helper-1.0.5/helpers/lh_binary_debian-installer	2009-09-07 13:51:58.000000000 -0300
+++ live-helper-1.0.5/helpers/lh_binary_debian-installer	2009-09-09 15:11:51.000000000 -0300
@@ -80,7 +80,15 @@
 # Setting destination directory
 case "${LH_BINARY_IMAGES}" in
 	net)
-		DESTDIR="tftpboot/debian-install/${LH_ARCHITECTURE}"
+		case "${LH_MODE}" in
+			ubuntu)
+				DESTDIR="tftpboot/ubuntu-install/${LH_ARCHITECTURE}"
+				;;
+		
+			*)
+				DESTDIR="tftpboot/debian-install/${LH_ARCHITECTURE}"
+				;;
+		esac
 		;;
 
 	tar|usb-hdd)
@@ -148,8 +156,18 @@
 	*)
 		case "${DI_IMAGE_TYPE}" in
 			netboot)
-				DI_REMOTE_BASE="netboot/debian-installer/${LH_ARCHITECTURE}"
-				DI_REMOTE_BASE_GTK="netboot/gtk/debian-installer/${LH_ARCHITECTURE}"
+				case "${LH_MODE}" in
+					ubuntu)
+						DI_REMOTE_BASE="netboot/ubuntu-installer/${LH_ARCHITECTURE}"
+						DI_REMOTE_BASE_GTK="netboot/gtk/ubuntu-installer/${LH_ARCHITECTURE}"
+						;;
+				
+					*)
+						DI_REMOTE_BASE="netboot/debian-installer/${LH_ARCHITECTURE}"
+						DI_REMOTE_BASE_GTK="netboot/gtk/debian-installer/${LH_ARCHITECTURE}"
+						;;
+				esac
+
 				DI_REMOTE_KERNEL="linux"
 				;;
 

Reply to: