Skip to content

Commit

Permalink
Add support for Ubuntu 9.10
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <clalance@redhat.com>
  • Loading branch information
Chris Lalancette committed Oct 25, 2010
1 parent d45b71c commit 791e1c6
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
11 changes: 7 additions & 4 deletions Ubuntu.py
Expand Up @@ -14,14 +14,15 @@ def ubuntu_generate_iso(output, inputdir):
"-boot-load-size", "4", "-boot-info-table",
"-v", "-v", "-o", output, inputdir])

class Ubuntu810and904Guest(Guest.CDGuest):
def __init__(self, update, arch, preseed, iso):
class Ubuntu810and904and910Guest(Guest.CDGuest):
def __init__(self, update, arch, preseed, iso, initrd):
Guest.CDGuest.__init__(self, "Ubuntu", update, arch, None, "virtio", None, None, "virtio")
self.ubuntuarch = arch
if self.ubuntuarch == "x86_64":
self.ubuntuarch = "amd64"
self.isourl = iso
self.preseed_file = preseed
self.initrd = initrd

def generate_new_iso(self):
ubuntu_generate_iso(self.output_iso, self.iso_contents)
Expand All @@ -48,7 +49,7 @@ def modify_iso(self):
lines.append("label customiso\n")
lines.append(" menu label ^Customiso\n")
lines.append(" kernel /casper/vmlinuz\n")
lines.append(" append file=/cdrom/preseed/customiso.seed debian-installer/locale=en_US console-setup/layoutcode=us boot=casper automatic-ubiquity noprompt initrd=/casper/initrd.gz ramdisk_size=14984 --\n")
lines.append(" append file=/cdrom/preseed/customiso.seed debian-installer/locale=en_US console-setup/layoutcode=us boot=casper automatic-ubiquity noprompt initrd=" + self.initrd + " ramdisk_size=14984 --\n")
f = open(self.iso_contents + "/isolinux/text.cfg", "w")
f.writelines(lines)
f.close()
Expand Down Expand Up @@ -159,8 +160,10 @@ def modify_iso(self):

def get_class(update, arch, isourl, key):
preseed = "./ubuntu-" + update + "-jeos.preseed"
if update == "9.10":
return Ubuntu810and904and910Guest(update, arch, preseed, isourl, "/casper/initrd.lz")
if update == "8.10" or update == "9.04":
return Ubuntu810and904Guest(update, arch, preseed, isourl)
return Ubuntu810and904and910Guest(update, arch, preseed, isourl, "/casper/initrd.gz")
if update == "7.10" or update == "8.04.1" or update == "8.04.2" or update =="8.04.3" or update == "8.04.4":
return Ubuntu710and8041Guest(update, arch, preseed, isourl)
if update == "6.10" or update == "7.04":
Expand Down
2 changes: 1 addition & 1 deletion oz.py
Expand Up @@ -30,7 +30,7 @@ def usage():
print " RHEL 3: GOLD, U1, U2, U3, U4, U5, U6, U7, U8, U9"
print " RHEL 4: GOLD, U1, U2, U3, U4, U5, U6, U7, U8"
print " RHEL 5: GOLD, U1, U2, U3, U4, U5"
print " Ubuntu: 6.10, 7.04, 7.10, 8.04.[1,2,3,4], 8.10, 9.04"
print " Ubuntu: 6.10, 7.04, 7.10, 8.04.[1,2,3,4], 8.10, 9.04, 9.10"
print " Windows: 2000, XP, 2003"
print " RHL: 7.0, 7.1, 7.2, 7.3, 8, 9"
sys.exit(1)
Expand Down
35 changes: 35 additions & 0 deletions ubuntu-9.10-jeos.preseed
@@ -0,0 +1,35 @@
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string

d-i clock-setup/utc boolean true
d-i time/zone string US/Eastern

d-i partman-auto/init_automatically_partition
d-i partman-auto/method string regular
d-i partman-auto/choose_recipe select home
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true

d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
d-i passwd/root-password password 100yard-
d-i passwd/root-password-again password 100yard-

tasksel tasksel/first multiselect standard, ubuntu-desktop
d-i pkgsel/include string nc wget

d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

d-i apt-setup/security_host string
base-config apt-setup/security-updates boolean false

ubiquity ubiquity/summary note
ubiquity ubiquity/reboot boolean true

0 comments on commit 791e1c6

Please sign in to comment.