; vim:et:ts=4:sw=4:ai:tw=0 ; ; Here is a list of variables that you can use in the file ; that will automatically be replaced with their correct value ; at runtime. ; platform ; dsaPath ; upPath ; dpPath [rh40] display_name = "Red Hat Enterprise Linux (version 4) x86" filter_function="import DellLib.dsa.OsEnable as foo; (enable_os, messages) = foo.getLinuxCapable( x64=0, ver='RHEL4' ); " cd_list = [ 'rh40cd1', 'rh40cd2', 'rh40cd3', 'rh40cd4', 'rh40cd5' ] replace_files = [ "%(dpPath)s/ks.cfg", "%(dpPath)s/linux/script/400-driver-updates.sh", "%(dpPath)s/boot/grub/grub.conf" ] partitioning_strategy="LinuxDP" strategy=[ "rhel40Strategy", "DynamicDriverDetectStrategy"] up_copy_size=30 dp_copy_size=2550 dsa_files = [ # everything here is for the DP, except as noted. # important: copy io.sys _first_ or dos will not boot ( "%(dsaPath)s/dsa/drmk/.", "%(upPath)s/" ), # note these go on UP ( "%(dsaPath)s/server_assistant/pexxxx/upimg.bin", "%(upPath)s/", "cnfo" ), # note these go on UP ( "%(dsaPath)s/server_assistant/%(platform)s/upimg.bin", "%(upPath)s/", "cnfo" ), # note these go on UP ( "%(dsaPath)s/server_assistant/pexxxx/linux/rh40/.", "%(dpPath)s/linux/" ), ( "%(dsaPath)s/server_assistant/%(platform)s/linux/rh40/.", "%(dpPath)s/linux/", "crfo" ), ( "%(dpPath)s/linux/ks.cfg", "%(dpPath)s/" ), # copy automatically pulled drivers. ( "%(dsaPath)s/server_assistant/drivers/.", "%(dpPath)s/drivers", "crfo" ), #OM Install stuff - Add back when we have the correct OM support files ( "%(dsaPath)s/srvadmin/linux/RPMS/.", "%(dpPath)s/serveradministrator/RPMS", "crfo"), ( "%(dsaPath)s/srvadmin/linux/supportscripts/.", "%(dpPath)s/serveradministrator/supportscripts", "crfo"), ( "%(dsaPath)s/srvadmin/linux/RPM-GPG-KEY", "%(dpPath)s/serveradministrator/", "crfo"), ] ; quote all strings in CD declarations [rh40cd1] display_name = "Red Hat Enterprise Linux 4.0 CD 1" size=50 cd_type="Base" identity_type ="Custom" # Dont accept Update CDs. We support only AS 4.0 Gold CD identity_custom="""self._identifyByFileContent( ".discinfo", r"^Red Hat Enterprise Linux 4" ) \ and self._identifyByFileContent( ".discinfo", r"^1$" ) \ and self._identifyByFileContent( ".discinfo", r"^i386$" ) \ and not self._identifyByFileContent( "README-en", r"Nahant Update" )""" ; note - don't use leading slash below copy_type=["DestIsIso", "DestIsDir"] copy_iso = "%(dpPath)s/RedHat40_disc1.iso" copy_file=[ ("isolinux/vmlinuz", "%(dpPath)s/linux/"), ("isolinux/initrd.img", "%(dpPath)s/linux/"), # # Instructions for platform overrides for initrd/kernel: # platform-specific kernel/initrd should be stored in # /pexxxx/linux/9/platform/loadlin.exe # /pexxxx/linux/9/platform/vmlinuz # /pexxxx/linux/9/platform/initrd.img # they will be copied into place here. # ( "%(dpPath)s/linux/platform/loadlin.exe", "%(dpPath)s/linux/", "cnfo" ), ( "%(dpPath)s/linux/platform/vmlinuz", "%(dpPath)s/linux/", "cnfo" ), ( "%(dpPath)s/linux/platform/initrd.img", "%(dpPath)s/linux/", "cnfo" ), ( "%(dpPath)s/linux/platform/modinfo", "%(dpPath)s/", "cnfo" ), ( "%(dpPath)s/linux/platform/modules.cgz", "%(dpPath)s/", "cnfo" ), ( "%(dpPath)s/linux/platform/modules.dep", "%(dpPath)s/", "cnfo" ), ( "%(dpPath)s/linux/platform/pcitable", "%(dpPath)s/", "cnfo" ), ( "%(dpPath)s/linux/platform/rhdd-6.1", "%(dpPath)s/", "cnfo" ), ] [rh40cd2] display_name = "Red Hat Enterprise Linux 4.0 CD 2" size=50 cd_type="Base" identity_type ="Custom" # binutils-2.15.92.0.2-10.EL4.i386.rpm is present only in Gold CD. # Update CDs have a different version of binutils rpm identity_custom="""self._identifyByFileContent( ".discinfo", r"^Red Hat Enterprise Linux 4" ) \ and self._identifyByFileContent( ".discinfo", r"^2$" ) \ and self._identifyByFileContent( ".discinfo", r"^i386$" ) \ and self._identifyByPath("RedHat/RPMS/binutils-2.15.92.0.2-10.EL4.i386.rpm")""" ; note - don't use leading slash below copy_type=["DestIsIso"] copy_iso = "%(dpPath)s/RedHat40_disc2.iso" [rh40cd3] display_name = "Red Hat Enterprise Linux 4.0 CD 3" size=50 cd_type="Base" identity_type ="Custom" # strace-4.5.8-1.i386.rpm is present only in Gold CD. # Update CDs have a different version of strace rpm identity_custom="""self._identifyByFileContent( ".discinfo", r"^Red Hat Enterprise Linux 4" ) \ and self._identifyByFileContent( ".discinfo", r"^3$" ) \ and self._identifyByFileContent( ".discinfo", r"^i386$" ) \ and self._identifyByPath("RedHat/RPMS/strace-4.5.8-1.i386.rpm")""" ; note - don't use leading slash below copy_type=["DestIsIso"] copy_iso = "%(dpPath)s/RedHat40_disc3.iso" [rh40cd4] display_name = "Red Hat Enterprise Linux 4.0 CD 4" size=50 cd_type="Base" identity_type ="Custom" # anaconda-10.1.1.13-1.i386.rpm is present only in Gold CD. # Update CDs have a different version of anaconda rpm identity_custom="""self._identifyByFileContent( ".discinfo", r"^Red Hat Enterprise Linux 4" ) \ and self._identifyByFileContent( ".discinfo", r"^4$" ) \ and self._identifyByFileContent( ".discinfo", r"^i386$" ) \ and self._identifyByPath("RedHat/RPMS/anaconda-10.1.1.13-1.i386.rpm")""" ; note - don't use leading slash below copy_type=["DestIsIso"] copy_iso = "%(dpPath)s/RedHat40_disc4.iso"