- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Kickstart %POST problems.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2006 11:37 PM
тАО11-19-2006 11:37 PM
Kickstart %POST problems.
Below is my kickstart config file.
#Generated by Kickstart Configurator
#platform=x86, AMD64, or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#Sytem timezone
timezone Africa/Johannesburg
#Root password
rootpw --iscrypted $1$FkGS4/cU$jalrqQZH8uFOfT0QNk/Lu/
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use NFS installation Media
nfs --server=*******.***.******.com --dir=/data/Redhat/RHEL_4
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part /boot --fstype ext3 --size 25
part / --fstype ext3 --size 16958
part swap --size 448
#System authorization infomation
auth --useshadow --enablemd5
#Network information
Left out for security reasons
#Firewall configuration
firewall --disabled
#SELinux configuration
#selinux --enforcing
#Do not configure XWindows
skipx
%post
#/usr/sbin/chroot /mnt/sysimage
/bin/hostname ranger.cpt.intecbilling.com
/bin/mkdir /mnt/archmnt
/bin/mount ****.*****.*****.com:/data/linux/recovery/archives/ranger /mnt/archmnt
cd /
/usr/bin/open -s -w -- /bin/cpio -icvt /mnt/archmnt/archive_latest.cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 12:19 AM
тАО11-20-2006 12:19 AM
Re: Kickstart %POST problems.
just my 2 cents :
try
cat <
/bin/hostname ranger.cpt.intecbilling.com
/bin/mkdir /mnt/archmnt
/bin/mount ****.*****.*****.com:/data/linux/recovery/archives/ranger /mnt/archmnt
cd /
/usr/bin/open -s -w -- /bin/cpio -icvt /mnt/archmnt/archive_latest.cpio
EOF
/usr/sbin/chroot /mnt/sysimage cpio-it.sh
my guess is that your first chroot fork a /bin/sh and then stop.
Jean-Yves Picard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 12:48 AM
тАО11-20-2006 12:48 AM
Re: Kickstart %POST problems.
echo "hello" >>/etc/motd
and nothing at all. It seems to jump this section completely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 01:12 AM
тАО11-20-2006 01:12 AM
Re: Kickstart %POST problems.
also is ****.*****.*****.com recognizable by the machine on which the kickstart runs,i.e can it access it via hostname,etc.
Are the NFS permissions allow this host to connect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 12:43 PM
тАО11-20-2006 12:43 PM
Re: Kickstart %POST problems.
We have the following this all runs under chroot environment - no need to do or say anything else other than %post assuming your script is a bash one!
%post
!/bin/bash
chvt 3
NFSSERVER=192.168.1.1
mkdir /nfs
mount -o ro,nolock -t nfs $NFSSERVER:/data/nfs /nfs
echo "Starting Post Build Script"
ksh -x /nfs/buildserver/postbuild.sh "KICKSTART" 3 1 >> /root/postbuild.log 2>&1
all data is referenced via /nfs an NFS mount point on root. Your NFS server needs a mount point of /data/nfs as *(ro,sync) and all files under it need to be world readable/executable is your going to runs scripts.
The above postbuild does all sorts of stuff including registering to the redhat network depending upon parameter 2 - 3 indicates dont bother, 1 uses are prod rhn user and 2 is an eval one we setup. Parameter 3 sets up hardened systems does more than the generic config.
Hope this helps, we had some problems to start with however now its a dream, the only problem we get is building servers in between firewalls and not at this stage having it down pat as to what ports we need completely open for the build etc.
Robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 12:44 PM
тАО11-20-2006 12:44 PM
Re: Kickstart %POST problems.
Robert.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2006 04:23 PM
тАО11-20-2006 04:23 PM
Re: Kickstart %POST problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-21-2006 01:06 AM
тАО11-21-2006 01:06 AM
Re: Kickstart %POST problems.
Paul you wrote :
I did try a basic
echo "hello" >>/etc/motd
and nothing at all. It seems to jump this section completely.
in this case, Hello is writen on temporary /etc/motd, which is lost when system reboot.
you should try
echo hello > /mnt/sysimage/etc/mytest.txt
and to answer Alexander, ****.*****.*****.com ought to be resolved and have read access since it is used on nfs --server %install part of kickstart.
Jean-Yves