%post commands ignored

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

 



Greetings,

I am doing a Kickstart install of RH 7.3 from /dev/hdc2, a partition
which holds the .iso images in addition to other files.

My ks.cfg file is 99% generated by Anaconda following a manual install.

This is an ext2 partition, per the kickstart instructions on the RH
website.

I have 2 issues...

1.  I want the install program to create the /redhat directory and map
to it on /dev/hdc2.
But, if I include the line "part /redhat --fstype ext2 --onpart=hdc2
--noformat", the install crashes with msg: "...can't find partition
hdc2, the partition does not exist."
Is there any workaround for this?

2.  My %post commands are ignored.  Right now, I'd settle for the mkdir,
but I have a lot more I'd like it to do.
What's going on?  Can I send errors to a log file for diagonosis?  I've
tried this with and without the --nochroot, with and without specifying
paths.

Here's my ks.cfg file:

install
harddrive --partition hdc2 --dir /
lang en_US
langsupport en_US
keyboard us
mouse genericps/2 --device psaux
skipx
network --device eth0 [snip]
rootpw --iscrypted [snip]
firewall --medium
authconfig --enableshadow --enablemd5
timezone America/Chicago
bootloader
part /boot --fstype ext3 --onpart=hda1
part / --fstype ext3 --onpart=hda2
part swap --size=375 --onpart=hdc1
reboot

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

%post
mkdir /redhat
useradd charles



Thanks,
Charles
http://howse.dns2go.com 





[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