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 153226 Details for
Bug 232529
In anaconda kickstart environment, printf does not pad output correctly
[?]
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.
Example kickstart
kickstart-example.cfg (text/plain), 4.62 KB, created by
Darren Patterson
on 2007-04-20 23:01:42 UTC
(
hide
)
Description:
Example kickstart
Filename:
MIME Type:
Creator:
Darren Patterson
Created:
2007-04-20 23:01:42 UTC
Size:
4.62 KB
patch
obsolete
># ip: <IP>, hexip: <hexIP>, hostname: something.example.com, once: 1 network --bootproto static --ip <IP> --netmask 255.255.254.0 --nameserver <IP> --gateway <IP> --hostname something.example.com ## start default head ## # $Id: $ text lang en_US langsupport en_US keyboard us timezone US/Pacific rootpw --iscrypted <snip> auth --useshadow --enablemd5 --enablecache bootloader mouse --device=psaux none deviceprobe skipx reboot install url --url http://whatever.example.com/<snip>/ks-rhel-i386-as-4-u3 selinux --disabled # $Id: generic.apple,v 1.2 2006/05/30 16:42:32 <user> Exp $ zerombr yes clearpart --drives=sda --all part / --size 12048 --grow --fstype ext3 part swap --size 1024 --fstype swap part /usr/vice/cache --size 1024 --fstype ext3 part /boot --size 512 --fstype ext3 part /tmp --size 3072 --fstype ext3 part /var --size 12048 --fstype ext3 >## start default foot ## ># $Id: default.foot,v 1.3 2006/08/28 19:51:02 <user> Exp $ > >%packages --resolvedeps --ignoremissing >@ Base >postfix >pdksh >sysstat >xinetd >vim-minimal >compat-libstdc++ >ntp >ntpd >krbafs >-pam_krb5 >-sendmail >-apmd >-cyrus-sasl-plain >-yp-tools >-ypbind >-rsh >-rp-pppoe >-wvdial >-ppp >-isdn4k-utils >-logwatch >-logrotate >-lrzsz >-minicom >-wireless-tools >-talk >-vconfig >-aspell >-irda-utils >-jwhois >-lftp >-lha >-nfs-utils >-lilo >-mdadm >-cups >-kernel >-portmap >-krb5-workstation >-raidtools > > >%pre ># Log everything in pre >( ># idea from John Borwick's script from wfu.edu ># get hexidecimal IP for eth0 >IP=`ifconfig eth0 | grep "inet addr" | cut -d: -f2 | cut -d' ' -f1 | tr '.' ' '` >HEX_IP=`printf "%02x%02x%02x%02x" $IP | tr '[a-z]' '[A-Z]'` >SHELL_SCRIPT=/tmp/pre.sh ># if at once you don't succeed... >wget -q "http://whatever.example.com/cgi-bin/<snip>/pre/$HEX_IP" -O $SHELL_SCRIPT ># try, try again >if [ ! -e $SHELL_SCRIPT ] >then > RHIP=`nslookup whatever.example.com | grep Address | tail -1 | cut -d : -f 2 | perl -pe 's/\s//g'` > wget -q "http://$RHIP/cgi-bin/<snip>/pre/$HEX_IP" -O $SHELL_SCRIPT >fi > >if [ -e $SHELL_SCRIPT ] >then > . $SHELL_SCRIPT >fi >) > /tmp/ks-user-preinstall.log 2>&1 > >%post --nochroot ># copy over any logs the user created in /tmp/prelog >cp -rf /tmp/ks*.log /mnt/sysimage/root/ >cp /tmp/netinfo /mnt/sysimage/root/ks-netinfo > >%post ># log everything >( ># disable SELinux! and backup the config just in case >perl -w -pi -e "s/^SELINUX=.*/SELINUX=disabled\n/sg" /etc/sysconfig/selinux >setenforce 0 > ># turn on services we need ># turn off daemons we don't want or I have a personal dislike for >chkconfig rhnsd on >chkconfig irda off >chkconfig pcmcia off >chkconfig isdn off >chkconfig nfs off >chkconfig nfslock off >chkconfig netfs off >chkconfig portmap off >chkconfig sshd on >chkconfig gpm off >chkconfig cups off >chkconfig ntpd on > ># --Begin RHN command section-- >wget -q http://whatever.example.com/pub/RHN-ORG-TRUSTED-SSL-CERT -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT >perl -npe 's/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g' -i /etc/sysconfig/rhn/* >perl -npe 's/xmlrpc.rhn.redhat.com/whatever.example.com/' -i /etc/sysconfig/rhn/up2date > >rpm --import /usr/share/rhn/RPM-GPG-KEY ># import OTHER GPG key ># add other GPG keys here later >wget -q http://whatever.example.com/pub/OTHER-GPG-KEY -O /tmp/OTHER-GPG-KEY >rpm --import /tmp/OTHER-GPG-KEY > >wget -q http://whatever.example.com/pub/GPG-KEY -O /tmp/GPG-KEY >rpm --import /tmp/GPG-KEY > ># DO NOT MODIFY THE COMMENT LINE BELOW ># generate activation key with the correct channels > >rhn_check > ># --Setup Kerberos config file-- >cat > /etc/krb5.conf << END ><snip> >END > ># enable magic sysrq >sysctl -w kernel.sysrq="1" > >) > /root/ks-post.log 2>&1 > ># ># get post install and source script ># >IP=`ifconfig eth0 | grep "inet addr" | cut -d: -f2 | cut -d' ' -f1 | tr '.' ' '` >HEX_IP=`printf "%02x%02x%02x%02x" $IP | tr '[a-z]' '[A-Z]'` >SHELL_SCRIPT="/tmp/post.sh" >wget -q "http://host.something.com/cgi-bin/<snip>/post/$HEX_IP" -O $SHELL_SCRIPT >if [ -e $SHELL_SCRIPT ] >then > # log the users' post script results > ( . $SHELL_SCRIPT ) > /root/ks-user-post.log 2>&1 >fi > > >( # log the afs config ># install openafs rpms >up2date -f openafs openafs-client openafs-kernel openafs-kernel-smp openafs-krb5 > >mkdir -p /usr/vice/etc/ >echo ir.example.com > /usr/vice/etc/ThisCell >cat > /usr/vice/etc/CellServDB << END ><snip> >END > >echo "ir.example.com ir" > /usr/vice/etc/CellAlias >echo "/afs:/usr/vice/cache:500000" > /usr/vice/etc/cacheinfo >/usr/bin/perl -spi -e 's%(AFS_POST_INIT=).*%$1"/usr/bin/fs setcrypt on"%' /etc/sysconfig/afs > >chkconfig openafs-client on > ># dump a log of afs config >) > /root/ks-afs.log 2>&1 > ># install puppet, facter >up2date facter puppet > > ># install i386 libs for x86_64 in case we need them >if `uname -i | grep -q "x86_64"`; then > up2date --arch=i386 glibc compat-libgcc-296 >fi > >## end default.foot ##
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 232529
: 153226