#234 RFE: Auto installing ISO image
Closed: Fixed Opened by jsteffan.

Make it easy to build an auto-installing ISO image that will boot, run anaconda and then shutdown/restart.


This is a prereq of #95 #96 and #94

We have self.cfg.kickstart_include .. which sticks the kickstart on the image and adds an entry to boot with the kickstart.

It seems that we will just need to make sure the kshandler object is suitable to run an automated install and we should be good.

Good progress. All that remains is figuring out how to tell the kshandler to not interact with the user at the partitioning stage.

{{{

Partition clearing information

clearpart --all --initlabel

autopart

Partitioning for workstations

clearpart --all --drives=sda --initlabel
part /boot --fstype ext3 --size=100 --asprimary
part swap --recommended
part pv.00 --size=1 --grow
volgroup vg0 pv.00
logvol / --name=root --vgname=vg0 --fstype ext3 --size=3000
logvol /var --name=var --vgname=vg0 --fstype ext3 --size=3000
logvol /usr --name=usr --vgname=vg0 --fstype ext3 --size=6000
logvol /data --name=data --vgname=vg0 --fstype ext3 --size=1 --grow
logvol /home --name=home --vgname=vg0 --fstype ext3 --size=1 --grow
}}}

Either of those will do

This actually needs to be coded. (Well just the right switches need to be flipped and it needs to be tested.)

base.py: Starting at line 1025

Is that related to self.cfg.media_virtual? All depends on a good kickstart that answers all questions.

Adding another option to kickstart_include and kickstart_default would imply Revisor builds a kickstart from what we think is best, to fill in the gaps any supplied kickstart may have only to be able to unattended installs. I don't think we should go there.

Running a final test on whether -include and -default do what they are supposed to on CentOS 5 is running, Fedora 7 is confirmed

Confirmed:

{{{
[kanarip@anakin revisor-2.0.5]$ sudo ./revisor.py --cli --yes --install-dvd --kickstart-default --kickstart-include
Loading Repositories: ######################################## 100.0%
Select kickstart packages: 0.0% Group not found: web-server --optional
Select kickstart packages: ######################################## 100.0%
Resolving Dependencies: ######################################## 100.0%
Populating statistics: ######################################## 100.0%
Linking in packages: ######################################## 100.0%
Creating Repository Information: ######################################## 100.0%
Building Installation Images: ######################################## 100.0%
Linking in release notes: ######################################## 100.0%
Creating DVD ISO Image: ######################################## 100.0%
Implanting MD5 into ISO Images: ######################################## 100.0%
Creating SHA1SUMs for Images: ######################################## 100.0%
[kanarip@anakin revisor-2.0.5]$ sudo mount -t iso9660 -o loop /srv/revisor/f7-i386/iso/F-7-i386-DVD.iso /mnt/revisor/
[kanarip@anakin revisor-2.0.5]$ cd /mnt/revisor/
[kanarip@anakin revisor]$ ls
Fedora GPL img ks.cfg RELEASE-NOTES-en_US.html RPM-GPG-KEY RPM-GPG-KEY-fedora RPM-GPG-KEY-fedora-test stylesheet-images
fedora.css images isolinux README-BURNING-ISOS-en_US.txt repodata RPM-GPG-KEY-beta RPM-GPG-KEY-fedora-rawhide RPM-GPG-KEY-rawhide TRANS.TBL
[kanarip@anakin revisor]$ cd isolinux/
[kanarip@anakin isolinux]$ cat isolinux.cfg
default vesamenu.c32

prompt 1

timeout 600

display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg

menu background splash.jpg
menu title Welcome to Fedora!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000

label linux
menu label ^Install or upgrade an existing system
kernel vmlinuz
append initrd=initrd.img
label text
menu label Install or upgrade an existing system (^text mode)
kernel vmlinuz
append initrd=initrd.img text
label rescue
menu label ^Rescue installed system
kernel vmlinuz
append initrd=initrd.img rescue
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -

label ks
menu label ^Install using kickstart
menu default
kernel vmlinuz
append initrd=initrd.img ks=cdrom:/ks.cfg
}}}

Metadata Update from @jsteffan:
- Issue assigned to kanarip
- Issue set to the milestone: 2.0.4 Release

Metadata