Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 154870 Details for
Bug 240367
Make %include work anywhere in the kickstart
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test kickstart
ks.cfg (text/plain), 11.98 KB, created by
Jack Neely
on 2007-05-16 20:39:13 UTC
(
hide
)
Description:
test kickstart
Filename:
MIME Type:
Creator:
Jack Neely
Created:
2007-05-16 20:39:13 UTC
Size:
11.98 KB
patch
obsolete
>lang en_US > >install >network --bootproto dhcp >url --url http://install.linux.ncsu.edu/pub/realmkit/realmkit-5/client-5.0/i386 > >repo --name=WebKickstartRepo0 --baseurl=http://install.linux.ncsu.edu/pub/yum/CLS/RealmLinux/5/base/i386 > >zerombr >clearpart --all > >part / --size 8192 >part swap --recommended >part /boot --size 128 >part /tmp --size 256 --grow >part /var --size 1024 >part /var/cache --size 1024 > >selinux --disabled >timezone US/Eastern >keyboard us >reboot >firewall --enabled --ssh --port=afs3-callback:tcp,afs3-callback:udp,afs3-errors:tcp,afs3-errors:udp > >auth --useshadow --enablemd5 --enableldap --ldapserver ldap.ncsu.edu --ldapbasedn dc=ncsu,dc=edu --enablecache --enablekrb5 --enablekrb5kdcdns --krb5realm EOS.NCSU.EDU >xconfig --resolution "1280x1024" --depth 24 --defaultdesktop GNOME --startxonboot >bootloader --location mbr --md5pass xxxxxxxxxxxxx >rootpw --iscrypted xxxxxxxxxxxx > >%packages >@ realmlinux-base >@ realmlinux-devel >@ authoring-and-publishing >@ eclipse >@ editors >@ engineering-and-scientific >@ games >@ graphical-internet >@ graphics >@ office >@ sound-and-video >@ text-internet >@ gnome-desktop >@ kde-desktop >@ development-libs >@ development-tools >@ gnome-software-development >@ java-development >@ kde-software-development >@ legacy-software-development >@ ruby >@ x-software-development >@ admin-tools >@ java >@ legacy-software-support >@ system-tools >@ workstation >@ base-x >-logwatch >-yum-updatesd > > >%post ># Let's make DNS work >cat << EOF > /etc/resolv.conf >nameserver 152.1.1.206 >nameserver 152.1.1.161 >EOF > ># Make available the ethernet interface we are using >KSDEVICE=`cat /proc/cmdline|awk -v RS=\ -v FS== '/ksdevice=.*/ {print $2; exit}'` >if [ "$KSDEVICE" = "" ]; then > KSDEVICE=eth0 >fi > ># Want a /.version file. >echo "Kickstarted `/bin/date +%D`" > /.version >rpm -qa | sort >> /.version > ># make startup non-interactive >mv /etc/sysconfig/init /etc/sysconfig/init~ >sed 's/^PROMPT=yes$/PROMPT=no/' < /etc/sysconfig/init~ > /etc/sysconfig/init >rm /etc/sysconfig/init~ > ># fix /etc/hosts still >(grep -v localhost /etc/hosts ; echo "127.0.0.1 localhost.localdomain localhost") > /etc/hosts.new && mv /etc/hosts.new /etc/hosts > >#so apropos works >/usr/sbin/makewhatis >/dev/null 2>&1 || : > > ># updates >realmconfig --kickstart updates --enable-updates > > ># turn off audit and wax any logs >chkconfig auditd off >rm -rf /var/log/audit >rm -rf /var/log/audit.d/* > > >#set up a reinstall image >mkdir -p /boot/install >cd /boot/install >if [ ! -f vmlinuz ] ; then > wget http://install.linux.ncsu.edu//pub/rhel/5Client/i386/isolinux/vmlinuz >fi >if [ ! -f initrd.img ] ; then > wget http://install.linux.ncsu.edu//pub/rhel/5Client/i386/isolinux/initrd.img >fi >/sbin/grubby --add-kernel=/boot/install/vmlinuz --title="Reinstall Workstation" --copy-default --args="ks=http://foo.bar ramdisk_size=8192 noshell ksdevice=$KSDEVICE" --initrd=/boot/install/initrd.img > >cat << EOF > /root/.k5login >arkurth/root@EOS.NCSU.EDU >brabec/root@EOS.NCSU.EDU >daniel/root@EOS.NCSU.EDU >dlcarraw/root@EOS.NCSU.EDU >ershanno/root@EOS.NCSU.EDU >hmn/root@EOS.NCSU.EDU >jaklein/root@EOS.NCSU.EDU >jjneely/root@EOS.NCSU.EDU >jrwells/root@EOS.NCSU.EDU >jsw/root@EOS.NCSU.EDU >nbmccork/root@EOS.NCSU.EDU >ptwillia/root@EOS.NCSU.EDU >ststewar/root@EOS.NCSU.EDU >tkl/root@EOS.NCSU.EDU >tpgrimes/root@EOS.NCSU.EDU >tsgurgan/root@EOS.NCSU.EDU >twk/root@EOS.NCSU.EDU >wsetzer/root@EOS.NCSU.EDU >EOF >chmod 400 /root/.k5login > >cat << EOF >> /etc/sudoers >arkurth ALL=(ALL) ALL >brabec ALL=(ALL) ALL >daniel ALL=(ALL) ALL >dlcarraw ALL=(ALL) ALL >ershanno ALL=(ALL) ALL >hmn ALL=(ALL) ALL >jaklein ALL=(ALL) ALL >jjneely ALL=(ALL) ALL >jrwells ALL=(ALL) ALL >jsw ALL=(ALL) ALL >nbmccork ALL=(ALL) ALL >ptwillia ALL=(ALL) ALL >ststewar ALL=(ALL) ALL >tkl ALL=(ALL) ALL >tpgrimes ALL=(ALL) ALL >tsgurgan ALL=(ALL) ALL >twk ALL=(ALL) ALL >wsetzer ALL=(ALL) ALL >EOF >chmod 400 /etc/sudoers >realmconfig --kickstart auth --users arkurth,brabec,daniel,dlcarraw,ershanno,hmn,jaklein,jjneely,jrwells,jsw,nbmccork,ptwillia,ststewar,tkl,tpgrimes,tsgurgan,twk,wsetzer >realmconfig --kickstart sendmail --disable-daemon --masquerade unity.ncsu.edu > ># Setup forwarding for root's mail >cat << EOF >> /etc/aliases >root: linuxroot@lists.ncsu.edu >EOF >/usr/bin/newaliases > ># disable login on the console for non-local users ># RL4.4 and below don't have this code so we need to case that out >if realmconfig --kickstart pamconf --disable-console-login | grep "No such module"; then > mv /etc/pam.d/login /etc/pam.d/login~ > sed s/system-auth/remote-auth/ /etc/pam.d/login~ > /etc/pam.d/login > rm /etc/pam.d/login~ >fi > >realmconfig --kickstart tmpclean --enable-tmpclean >realmconfig --kickstart clusters --local-enable ncsu >realmconfig --kickstart clusters --remote-disable >realmconfig --kickstart dept --set itd-cls >realmconfig --kickstart printing --default lp >realmconfig --kickstart support --enable-support > ># The registration program's not smart enough to figure out the host name ># with out this the profile reads "localhost.localdomain" >IP=`/sbin/ifconfig $KSDEVICE | /bin/awk '/inet/ && !/inet6/ {sub(/addr:/, ""); print $2}'` >FQDN=`python -c "import socket; print socket.getfqdn('$IP')"` > >/usr/sbin/rhnreg_ks --activationkey xxxxx --profilename $FQDN --serverUrl https://rhn.linux.ncsu.edu/XMLRPC --sslCACert /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT > ># Import the RPM GPG keys >if [ -f /usr/share/rhn/RPM-GPG-KEY ] ; then > /bin/rpm --import /usr/share/rhn/RPM-GPG-KEY >fi >if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ] ; then > /bin/rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release >fi >if [ -f /usr/share/realmconfig/realmkit.gpg ] ; then > /bin/rpm --import /usr/share/realmconfig/realmkit.gpg >fi >if [ -f /usr/share/realmconfig/data/realmkit.gpg ] ; then > /bin/rpm --import /usr/share/realmconfig/data/realmkit.gpg >fi > ># Set Up2Date Configuration >if [ -f /usr/share/realmconfig/default-modules/up2date.py ] ; then > /usr/bin/python /usr/share/realmconfig/default-modules/up2date.py -f >fi > ># Run Yum update >chvt 3 >/usr/bin/yum -y update yum >/usr/bin/yum -y update >chvt 1 ># Final Fixes for RHEL 5 ># Fix for Red Hat Bug #236669 >mv /etc/nsswitch.conf /etc/nsswitch.conf~ >cat /etc/nsswitch.conf~ | sed 's/^protocols.*files ldap/protocols: files/' > /etc/nsswitch.conf >rm -f /etc/nsswitch.conf~ > ># The following scripts provided by the Jump Start confgs. > >%include /tmp/partitioning > >%pre --interpreter /bin/sh >ide_drives="" >scsi_drives="" > >if [ -d "/proc/ide" ]; then > for file in /proc/ide/hd*; do > if [ "`cat ${file}/media`" = "disk" ]; then > ide_drives="$ide_drives `basename ${file}`" > fi > done >fi > >if [ -d "/proc/scsi" ]; then > for file in /sys/block/sd*; do > # SCSI CDROMS are sr devices in /sys, so no need to do the same kind > # of testing we do for IDE devices > scsi_drives="$scsi_drives `basename ${file}`" > done >fi > >set $ide_drives >/dev/null 2>&1 >number_ide_drives="`echo $#`" > >echo $ide_drives > >if [ -n "$ide_drives" ]; then > case "$number_ide_drives" in > 1) # LVM >echo "1 IDE" > cat > /tmp/partitioning << EOF ># partitioning scheme for one IDE drive generated in pre >zerombr >clearpart --all --initlabel >part /boot --fstype "ext3" --size=100 >part pv.01 --size=1 --grow >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF > ;; > 2) # LVM and RAID-1 mirror >echo "2 IDE" > cat > /tmp/partitioning << EOF ># partitioning scheme for two IDE drives generated in pre >zerombr >clearpart --all --initlabel >part raid.01 --size=100 --ondisk=${1} >part raid.02 --size=100 --ondisk=${2} >part raid.03 --size=1 --grow --ondisk=${1} >part raid.04 --size=1 --grow --ondisk=${2} >raid /boot --fstype ext3 --level=RAID1 raid.01 raid.02 >raid pv.01 --fstype "physical volume (LVM)" --level=RAID1 raid.03 raid.04 >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF > ;; > *) # LVM and RAID-5 > # /boot must be RAID-1 on the first two drives so this first cat > # is everything we can set based on what we already know >echo "3 or more IDE" > cat > /tmp/partitioning << EOF1 ># partitioning scheme for three or more IDE drives generated in pre >zerombr >clearpart --all --initlabel >part raid.01 --size=100 --ondisk=${1} >part raid.02 --size=100 --ondisk=${2} >part raid.03 --size=1 --grow --ondisk=${1} >part raid.04 --size=1 --grow --ondisk=${2} >part raid.05 --size=1 --grow --ondisk=${3} >raid /boot --fstype ext3 --level=RAID1 raid.01 raid.02 >EOF1 > x="4" > y="6" > while [ "$x" -le "$number_ide_drives" ]; do > disk="`eval echo $\{$x}`" > echo "part raid.0${y} --size=1 --grow --ondisk=${disk}" \ > >> /tmp/partitioning > let x="${x}+1" > let y="${y}+1" > done > echo -n 'raid pv.01 --fstype "physical volume (LVM)" --level=RAID5' \ > >> /tmp/partitioning > while [ "$y" -gt 3 ]; do > let y="${y}-1" > echo -n " raid.0${y}" >> /tmp/partitioning > done > cat >> /tmp/partitioning << EOF2 > >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF2 > ;; > esac >fi > >set $scsi_drives >/dev/null 2>&1 >number_scsi_drives="`echo $#`" > ># If there is one or more IDE drives we'll install the OS on them and leave ># the SCSI drives untouched due to boot loader hilarity >if [ "$number_scsi_drives" -gt 0 ] && [ -z "$ide_drives" ]; then > case "$number_scsi_drives" in > 1) # LVM > cat > /tmp/partitioning << EOF ># partitioning scheme for one SCSI drive generated in pre >zerombr >clearpart --all --initlabel >part /boot --fstype "ext3" --size=100 >part pv.01 --size=1 --grow >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF > ;; > 2) # LVM and RAID-1 mirror > cat > /tmp/partitioning << EOF ># partitioning scheme for two SCSI drives generated in pre >zerombr >clearpart --all --initlabel >part raid.01 --size=100 --ondisk=${1} >part raid.02 --size=100 --ondisk=${2} >part raid.03 --size=1 --grow --ondisk=${1} >part raid.04 --size=1 --grow --ondisk=${2} >raid /boot --fstype ext3 --level=RAID1 raid.01 raid.02 >raid pv.01 --fstype "physical volume (LVM)" --level=RAID1 raid.03 raid.04 >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF > ;; > *) # LVM and RAID-5 > # /boot must be RAID-1 on the first two drives so this first cat > # is everything we can set based on what we already know > cat > /tmp/partitioning << EOF1 ># partitioning scheme for three or more SCSI drives generated in pre >zerombr >clearpart --all --initlabel >part raid.01 --size=100 --ondisk=${1} >part raid.02 --size=100 --ondisk=${2} >part raid.03 --size=1 --grow --ondisk=${1} >part raid.04 --size=1 --grow --ondisk=${2} >part raid.05 --size=1 --grow --ondisk=${3} >raid /boot --fstype ext3 --level=RAID1 raid.01 raid.02 >EOF1 > x="4" > y="6" > while [ "$x" -le "$number_scsi_drives" ]; do > disk="`eval echo $\{$x}`" > echo "part raid.0${y} --size=1 --grow --ondisk=${disk}" \ > >> /tmp/partitioning > let x="${x}+1" > let y="${y}+1" > done > echo -n 'raid pv.01 --fstype "physical volume (LVM)" --level=RAID5' \ > >> /tmp/partitioning > while [ "$y" -gt 3 ]; do > let y="${y}-1" > echo -n " raid.0${y}" >> /tmp/partitioning > done > cat >> /tmp/partitioning << EOF2 > >volgroup VolGroup00 pv.01 >logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=1 --grow >logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=1024 >EOF2 > ;; > esac >fi > > > > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 240367
: 154870