Andy Kannberg wrote:
Hi,

I would like to determine the RedHat version during a kickstart in a
pre-script.
I was thinking of checking the /etc/redhat-release file, but that file is
copied over after the pre-install onto the disk.
Is there a way of fetching it of the cd ? If yes, on which location can I
find it ?

Probably not anywhere consistent.

Other suggestions are also welcome !

Depending on the URL, that could give it to you. This suggests certain things:
http://mirror.3fl.net.au/pub/centos/5.2/os/x86_64/

If you have the actual ISO (or a real CD), this might help:
[r...@ns ~]# cat /mnt/iso/.discinfo
1213888991.267240
Final
i386
1
CentOS/base
/home/buildcentos/CENTOS/5.2/en/i386/CentOS
CentOS/pixmaps
[r...@ns ~]# cat /mnt/iso/.treeinfo
[general]
family = CentOS
timestamp = 1213887813.97
totaldiscs = 1
version = 5.2
discnum = 1
packagedir = CentOS
arch = i386

[images-i386]
kernel = images/pxeboot/vmlinuz
initrd = images/pxeboot/initrd.img
boot.iso = images/boot.iso
diskboot.img = images/diskboot.img

[images-xen]
kernel = images/xen/vmlinuz
initrd = images/xen/initrd.img

[stage2]
instimage = images/minstg2.img
mainimage = images/stage2.img
[r...@ns ~]#


--

Cheers
John

-- spambait
[email protected]  [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to