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

[PATCH] Add support for custom debian installer images mirror



Hello,

 Please accept this patch which adds a new option called 'LH_MIRROR_DEBIAN_INSTALLER'. If set, it overrides the URL used to fetch the d-i images/files providing support for easier use of custom debian installer images.

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
=== modified file 'functions/defaults.sh'
--- functions/defaults.sh	2009-09-02 14:10:05 +0000
+++ functions/defaults.sh	2009-10-04 05:06:35 +0000
@@ -316,6 +316,7 @@
 	fi
 
 	LH_MIRROR_CHROOT="${LH_MIRROR_CHROOT:-${LH_MIRROR_BOOTSTRAP}}"
+	LH_MIRROR_DEBIAN_INSTALLER="${LH_MIRROR_DEBIAN_INSTALLER:-${LH_MIRROR_CHROOT}}"
 
 	# Setting security mirror to fetch packages from
 	if [ -z "${LH_MIRROR_CHROOT_SECURITY}" ]

=== modified file 'helpers/lh_binary_debian-installer'
--- helpers/lh_binary_debian-installer	2009-09-02 05:39:13 +0000
+++ helpers/lh_binary_debian-installer	2009-10-04 05:06:37 +0000
@@ -252,7 +270,10 @@
 	esac
 fi
 
-if [ "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
+if [ -n "${LH_DEBIAN_INSTALLER_URL}" ]
+then
+    URL="${LH_DEBIAN_INSTALLER_URL}"
+elif [ "${LH_DEBIAN_INSTALLER_DISTRIBUTION}" = "daily" ]
 then
 	LH_DEBIAN_INSTALLER_DISTRIBUTION="sid"
 
@@ -288,7 +309,7 @@
 			;;
 	esac
 else
-	URL="${LH_MIRROR_CHROOT}/dists/${LH_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LH_ARCHITECTURE}/current/images/"
+	URL="${LH_MIRROR_DEBIAN_INSTALLER}/dists/${LH_DEBIAN_INSTALLER_DISTRIBUTION}/main/installer-${LH_ARCHITECTURE}/current/images/"
 fi
 
 mkdir -p "${DESTDIR_DI}"


Reply to: