Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm install RHEL5 from a kickstart file that seems to works but after the %post section nothing else works. How do I get the %post to start working? Is there a command I need to put before %post or a file I need or what? Not sure what is wrong and I need some help really bad because I am out of ideas:
Here's a copy of the script:
# Kickstart file automatically generated by anaconda.
install
cdrom
key --skip
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip xxx.xxx.xxx.xx --netmask xxx.xxx.xxx.x --gateway xxx.xx.xxx.xx --nameserver xxx.xx.xx.xx,xxx.xx.x.xx --hostname aaa1.xxx.xxx.com
network --device eth1 --onboot no --bootproto dhcp --hostname xxx.xxx.xxx.com
rootpw --iscrypted $xxxxxxxxxxxxxxxxxx
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc America/New_York
bootloader --location=mbr --driveorder=cciss/c0d0,cciss/c0d1 --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --initlabel
part /boot --fstype ext3 --size=100 --ondisk=cciss/c0d0
part pv.4 --size=139870 --grow --ondisk=cciss/c0d0
volgroup vg00 --pesize=32768 pv.4
logvol /tmp --fstype ext3 --name=lvol3 --vgname=vg00 --size=1000
logvol / --fstype ext3 --name=lvol1 --vgname=vg00 --size=10000
logvol /home --fstype ext3 --name=lvol2 --vgname=vg00 --size=10000
logvol /usr --fstype ext3 --name=lvol5 --vgname=vg00 --size=15000
logvol /opt --fstype ext3 --name=lvol4 --vgname=vg00 --size=5000
logvol /usr/local --fstype ext3 --name=lvol6 --vgname=vg00 --size=4000
logvol swap --fstype swap --name=swap --vgname=vg00 --size=10000
logvol /var --fstype ext3 --name=lvol7 --vgname=vg00 --size=6000
part pv.200000 --size=71000 --grow --ondisk=cciss/c0d1
volgroup vg01 --pesize=32768 pv.200000
logvol /system_backups --fstype ext3 --name=lvol20 --vgname=vg01 --size=49000
echo "Setting up ntp for the local time server..."
sed -i -r -e 's/^server.+rhel.+/\#server/g' $NTPConfFile
echo 'server xxx.xx.xxx.xxx' >> $NTPConfFile
/sbin/chkconfig --levels 345 ntpd on
Why do you have the --nochroot option on your %post line,
if you do not change into the new system's root directory,
all the file changes you are making are being made into
the RAM disk of the installation, not onto your new created
file systems.
My %post option only has --log=/root/kickstart.install.log
after it, and it runs fine. I recommend removing the
--nochange root, and add a logging option. You can add
some simple echo commands that will then appear in the log
to help with debugging any installation issues.
I remove the "%post --nochroot" and change the location of the variable
TextFile="/mnt/sysimage/root/ks-install.txt" to be
TextFile="root/ks-install.txt" and nothing will not run in the post section. Am I missing some package that need to be installed first or so need line to say run the post section.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.