- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - Linux
- >
- General
- >
- Kickstart %POST problems.
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP