Fedora Linux Support Community & Resources Center
Old 26th June 2008, 01:49 PM
ghrob Offline
Registered User
Join Date: Mar 2007
Posts: 2
fedora-8 PXE kickstart: %post fails

I'm trying to move 3 PC classrooms from RHELws4 to fedora-8. The RHELws4 installation is heavily customised using scripts in %post.

Hardware Dell 755
Fedora unity re-spin8 20080501, which uses anaconda version
Installing i386 version for compatability with other hardware
My ks.cfg is below.

For historical reasons %post runs --nochroot. This was necessary in RHEL4ws to get things working, although it is not essentail. However there are over 1000 lines of /bin/sh script and I'd prefer to keep as close to the RHEL version as possible.

All goes well until %post runs. The contents of the %post section are completetly ignored. It appears that the %post statement is overwritten by
a %pre statement with some daft parameters. The installed system boots OK, but without the %post changes. In the anaconda-ks.cfg file which is left in /root, the following appears after the end of the %packages section:

%pre --logfile False --erroronfail
the contents of my post section

I've tried fiddling with the ks file:

place %end at the end of %packages section before %post:
fails as above

simlified %post section:
echo "Hello World" >/root/gotcha
fails as above

give it a null %pre script:
anaconda crashes before the install starts.
python back-trace on the console...

File "/usr/lib/anaconda/kickstart.py", line 90, in run
os.chmod("%s" "messages, 0600)
OSError: [Errno 2} No such file or directory: 'False'
install exited abnormally [1/1]

If anyone can point me at details about the use of %post which is relevant to the anaconda version (above),I'd be very grateful. Especially options on the %post statement and the environment in which the %post script runs: PATH, USER etc. I can find very little detail on this using google or from the RedHat site, but I can infer there's things I don't know, from browsing the fedora forum.

Any help appreciated.

# Classroom Dell 755 build script

#XWindows configuration information
xconfig --depth 24 --resolution 1280x1024 --defaultdesktop gnome --startxonboot
#System language
lang en_US.UTF-8
#System keyboard
keyboard uk
#System timezone
timezone --utc Europe/London
#SElinux extensions: enforcing breaks various things
selinux --permissive
#Root password
rootpw --iscrypted ....................
#Reboot after installation
#Install Fedora Linux instead of upgrade
#Use NFS installation Media
nfs --server= --dir=/export/install/Fedora-8/iso
#System bootloader configuration
bootloader --location=mbr --append rhgb quiet --md5pass=........
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all
#Disk partitioning information
part /boot --fstype ext3 --size 256
part /tmp --fstype ext3 --size 8192
part swap --size 4096
part / --fstype ext3 --size 1 --grow
#System authorization infomation
auth --useshadow --enablemd5
#Network information
network --bootproto=dhcp --device=eth0
#Firewall configuration
firewall --enabled --port=ssh:tcp
#Package install information
@ admin-tools
@ base
@ base-x
@ core
@ editors
@ gnome-desktop
@ system-tools
echo "Hello World" >/root/gotcha
Reply With Quote
Old 30th June 2008, 02:12 PM
ghrob Offline
Registered User
Join Date: Mar 2007
Posts: 2
I wonder is anyone using the Fedora unity re-spin8 20080501 in a PXE/kickstart environment?

I have experimented with the PXE initrd.img/vmlinuz from the original Fedora 8 release, and
the version of anaconda they use seems to be happier with my kickstart file. It cant actually do
anything very much, as it recognises that the initrd/vmlinuz doesn't belong to the media I'm trying
to install and grinds to a halt at an early stage. However, my kickstart script has a %pre section
and does NOT cause an instant anaconda crash, which seems to be a step (small) forward. Hence
my question above.

Help greatly appreciated.
Reply With Quote

%post, fails, fedora8, kickstart, pxe

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Kickstart Install - Post Section Problems phatmack18 Installation, Upgrades and Live Media 0 9th November 2007 02:57 AM
nfs fails in fc7 kickstart %post script buhl260 Installation, Upgrades and Live Media 1 10th July 2007 01:34 PM

Current GMT-time: 00:12 (Wednesday, 20-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat