# x86_64 Kickstart file for redhat-certification-hardware and RHEL 6 # # This file prepares a system under test (SUT) that is ready to be # certified using the Red Hat Certification test suite. Please note that # the local test server (LTS) function of the test suite is only supported # on RHEL 7. # # For testers without a kickstart environment, here are the mandatory # configuration choices used in this file that you should select during # manual installation # - English language installation # - Fresh install (no upgrades) # - Appropriate partition layout: # - Recommended swap space size for hibernation (laptops) or general system # function as described here: https://access.redhat.com/site/solutions/15244 # - Swap space on bare metal (no LVM) # - Non-OS drives blank # - All network devices set to use DHCP if not statically configured so that # they can be tested # - Firewall disabled # - SELinux enabled # - rhcertd service starting automatically at boot # - All necessary redhat-certification packages and dependencies installed # - All necessary debuginfo packages installed # # Please see the "Preparing the Test Environment" section of the Red Hat # Certification Test Suite User Guide to learn how to set up an # install environment that will work with this kickstart file: # # http://people.redhat.com/gcase/docs_preview/rhcert-2/ # # Or see the "Automating the Installation with Kickstart" section of the Red # Hat Enterprise Linux 6 Installation Guide for more information # # https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/ # # Begin redhat-certification-hardware kickstart file for RHEL 6 x86_64 install # Remove the comment character “#” from ONE of the two lines below to choose # your install method and change the server information to match your own # environment. #url --url=http://myserver.mydomain.com/path/to/rhel6-x86_64/bits #nfs --server=myserver.mydomain.com --dir=/path/to/rhel6-x86_64/bits # Choose the US keyboard layout keyboard us # Choose the US English system language lang en_US.UTF-8 # Configure the network connection(s) network --device eth0 --bootproto dhcp # Disable the firewall firewall --disable # System authorization information authconfig --enableshadow --passalgo=sha512 --enablefingerprint # Set the root password to "redhat" rootpw redhat # Enable SELinux (required for certification) selinux --enforcing # Set the system timezone timezone --utc America/New_York # Create a non-root user that testers can use for a GUI login user --name=certuser --password=redhat # System bootloader configuration bootloader --location=mbr --driveorder=sda --append="rhgb quiet" # See the %pre section near the bottom of this file for partitioning %include /tmp/part-include # Yum repository for redhat-certification, dt, lmbench, and stress # dependencies. Change the next line to point to your custom package # repository. repo --name=redhat-certification --baseurl=http://myserver.mydomain.com/path/to/rhcert/bits # Yum repository for kernel debuginfo dependencies. Change the next line # to point to your custom debuginfo repository. repo --name=rhel-6.7-x86_64-debug --baseurl=http://myserver.mydomain.com/path/to/rhel6-x86_64/debug/bits # Yum repository for MRG-Realtime 2.x packages. Uncomment the next line and # change it to point to the MRG-RT install files if you wish to certify # for MRG-Realtime 2.x. #repo --name=MRG-Realtime --baseurl=http://myserver.mydomain.com/path/to/MRG/bits/ # Yum repository for MRG-RT dependency (libxslt-python). Uncomment the next # line and change it to point to your custom MRG-RT dependency repo if you # wish to certify for MRG-Realtime 2.x. #repo --name=MRG-Realtime-dependencies --baseurl=http://myserver.mydomain.com/path/to/MRG-dependency/bits/ # Reboot when finished reboot %packages @additional-devel @base @core @debugging @basic-desktop @desktop-debugging @desktop-platform @desktop-platform-devel @development @emacs @fonts @general-desktop @graphical-admin-tools @graphics @input-methods @internet-browser @legacy-x @network-file-system-client @performance @perl-runtime @server-platform @server-platform-devel @server-policy @virtualization @virtualization-client @virtualization-platform @x11 libXinerama-devel xorg-x11-proto-devel startup-notification-devel libgnomeui-devel libbonobo-devel junit libXau-devel libgcrypt-devel popt-devel libdrm-devel libXrandr-devel libxslt-devel libglade2-devel gnutls-devel mtools pax python-dmidecode python-lxml oddjob sgpio genisoimage wodim abrt-gui desktop-file-utils ant rpmdevtools jpackage-utils rpmlint certmonger pam_krb5 krb5-workstation nscd pam_ldap nss-pam-ldapd netpbm-progs libXmu perl-DBD-SQLite libvirt-java dvd+rw-tools qemu-kvm-tools xorg-x11-apps sox kabi-whitelists createrepo mt-st # Screen utility is helpful for running tests over an SSH session # if debugging is necessary. screen # Install rhcert and dependencies from our custom repository redhat-certification-backend redhat-certification-hardware # Install the kernel debug packages required for the rhcert kdump test # from our custom repository kernel-debuginfo kernel-debuginfo-common-x86_64 # Uncomment the following packages if you followed the optional steps # above and want to certify for MRG-Realtime. #kernel-rt #rt-setup #rtctl #rteval #rteval-loads #rt-tests #libxslt-python %end %pre #!/bin/sh # Select the drives to use for install # DO NOT USE THIS KICKSTART FILE ON A SYSTEM WITH DATA YOU WISH # TO RETAIN! All drives are blanked by these commands. echo "clearpart --all --initlabel" > /tmp/part-include echo "ignoredisk --only-use=sda" >> /tmp/part-include echo "part /boot --fstype=ext4 --size=512 --ondisk=sda" >> /tmp/part-include # This swap section assumes that you have sufficient disk space to conform # to the recommended swap sizes detailed in this Red Hat Knowledgebase # article: https://access.redhat.com/site/solutions/15244 # For laptops and anything else with a battery: if udevadm info --export-db | grep -i -q bat[0-9]; then echo "part swap --hibernation --ondisk=sda" >> /tmp/part-include # For all other systems: else echo "part swap --recommended --ondisk=sda" >> /tmp/part-include fi # If your system doesn't have sufficient disk space, comment out the previous # if/else section and then uncomment and change the "--size" value on the # swap line below to an acceptable swap size for your system. #echo "part swap --fstype="swap" --size=2048 --ondisk=sda" >> /tmp/part-include echo "part / --fstype=ext4 --size=1024 --grow --ondisk=sda" >> /tmp/part-include %end %post # Set DHCP for all interfaces during %post if left unconfigured during install. if [ `ls -1 /etc/sysconfig/network-scripts/ifcfg-eth* | wc -l` -ge 1 ] then for i in /etc/sysconfig/network-scripts/ifcfg-eth* do if ! grep -i "bootproto" $i then echo "BOOTPROTO=dhcp" >> $i fi done fi if [ `ls /etc/sysconfig/network-scripts/ifcfg-wlan* | wc -l` -ge 1 ] then for i in /etc/sysconfig/network-scripts/ifcfg-wlan* do if ! grep -i "bootproto" $i then echo "BOOTPROTO=dhcp" >> $i fi done fi # This line starts the listener and server functions chkconfig rhcertd on %end # End redhat-certification-hardware kickstart file for RHEL 6 x86_64 # # Changelog # # 2017-06-22 Added a description of the choices in the kickstart file for # use with a manual installation # 2017-02-16 Replaced rhcert-backend command with new rhcertd # 2017-01-19 Removed deprecated redhat-certification-information package # 2015-11-18 Updates for redhat-certification-2.x tool # 2015-08-03 New kickstart file for new redhat-certification tool #