Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added support for debian mini isos

  • Loading branch information...
commit b437813019f35e6e4fe1c5e2d170412fd1564971 1 parent 1901a60
Jasper Poppe authored
View
3  etc/seedbank/conf.d/system.yaml
@@ -49,7 +49,7 @@ distributions:
netboots: [debian-squeeze, ubuntu-oneiric, ubuntu-precise]
isos: [debian-squeeze, ubuntu-oneiric, ubuntu-precise]
debian_iso_current: squeeze
- debian_iso_flavours: [businesscard, netinst]
+ debian_iso_flavours: [mini, businesscard, netinst]
ubuntu_iso_flavours: [mini, alternate, desktop, server]
# template files which are in the templates path
@@ -78,6 +78,7 @@ templates:
pxe_debian: pxe_debian
pxe_ubuntu: pxe_ubuntu
debian_isolinux: debian_isolinux.cfg
+ debian_mini_isolinux: debian_mini_isolinux.cfg
ubuntu_isolinux: ubuntu_isolinux.cfg
ubuntu_mini_isolinux: ubuntu_mini_isolinux.cfg
rc_local: rc.local
View
9 etc/seedbank/templates/debian_mini_isolinux.cfg
@@ -0,0 +1,9 @@
+# seedBank template file which will replace the default isolinux.cfg on a mini installer ISO
+
+prompt 0
+timeout 10
+
+default install
+label install
+ kernel /linux
+ append initrd=/initrd.gz
View
24 seedbank/manage.py
@@ -142,15 +142,21 @@ def syslinux(self):
def iso_debian(self, name):
"""download a Debian ISO"""
distribution, release, architecture, flavour = name.split('-')
- if release == self.cfg['distributions']['debian_iso_current']:
- release = 'current'
- url = self.cfg['urls'][distribution + '_iso']
- url = os.path.join(url, release, architecture, 'iso-cd')
- isos = self._list_isos(url)
- iso_split = isos[0].split('-')
- version = iso_split[1]
- iso_file = '-'.join(('debian', version, architecture, flavour)) + '.iso'
- url = os.path.join(url, iso_file)
+ if flavour == 'mini':
+ url = self.cfg['urls'][distribution]
+ url = os.path.join(url, 'debian/dists', release, 'main/installer-' +
+ architecture, 'current/images/netboot/mini.iso')
+ else:
+ if release == self.cfg['distributions']['debian_iso_current']:
+ release = 'current'
+ url = self.cfg['urls'][distribution + '_iso']
+ url = os.path.join(url, release, architecture, 'iso-cd')
+ isos = self._list_isos(url)
+ iso_split = isos[0].split('-')
+ version = iso_split[1]
+ iso_file = '-'.join(('debian', version, architecture, flavour))
+ iso_file = iso_file + '.iso'
+ url = os.path.join(url, iso_file)
return url
def iso_ubuntu(self, name):
Please sign in to comment.
Something went wrong with that request. Please try again.