RE: %post commands ignored

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Re-typing the file in linux was the solution!  Thanks James!
Thanks to Chris Rouch for the reply, also.

I've just completed a ks install with a LONG, LONG list of %post
commands, and only 1 failed because of a typo!  :-(
I worked around the #1 issue by just mounting the /redhat directory in
the ks file and umounting it when done.

NOW...
Could we work on something else?
I'd like to learn how to do a NFS kickstart install.

I have my main server as an NFS server, exporting the /redhat directory.
Problem is, I have a 3c509 nic in the machine to be installed, and I
need to load a driver disk at install.
Per RedHat, I have created the netdrv.img (or whatever it's called)
floppy and copied the files to the root of /usr, and included the
correct line in ks.cfg.  I have as well loaded eth module for the 3c509.
The file below was created by doing a manual NFS install, and inserting
the driver disk when prompted.
I added lines 2, 3, 4, and edited the partitioning, packages, and %post.

The issue here is that the ks install crashes out to the vanilla text
install.
I'm using the bootnet.img, and linux ks=floppy at the prompt.


# Kickstart file automatically generated by anaconda.

install
driverdisk hda2 --type ext3
device eth 3c509 --opts "io=0x220, irq=5"
nfs --server 192.168.0.1 --dir /redhat
lang en_US
langsupport --default en_US.iso885915 en_US.iso885915
keyboard us
mouse generic3ps/2 --device psaux
skipx
network --device eth0 [snip]
rootpw [snip]
firewall --disabled
authconfig --enableshadow --enablemd5
timezone America/Chicago
bootloader
# 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 --drives=hda
part /boot --fstype ext3 --size=50 --onpart=hda1
part /usr --fstype ext3 --size=1400 --grow --onpart=hda2 --noformat
part /home --fstype ext3 --size=512 --grow --onpart=hda3
part / --fstype ext3 --size=384 --onpart=hda5
part /var --fstype ext3 --size=256 --onpart=hda6
part swap --size=96 --grow --maxsize=192 --onpart=hda

%packages
@ Network Support
@ Messaging and Web Tools
@ Server

%post
/usr/sbin/useradd charles
chfn -f 'Charles Howse' charles












[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux