Fedora Linux Support Community & Resources Center
Old 9th November 2007, 02:57 AM
phatmack18 Offline
Registered User
Join Date: Feb 2007
Posts: 4
Fedora Kickstart Install - Post Section Problems [SOLVED]


Turns out, if you edit your ks.cfg file in windows it puts windows carriage returns (^M) at the end of each line. Once I figured this out, I tried creating the ks.cfg file in Linux and then transferring it to Window (WinSCP) and then adding it to the ISO (UltraISO) and burning the CD (Nero). Even when the original file, in Linux, didn't have the ^M at the end of every line, once it ended up on CD the carriage return was back! In other words, WinSCP (possible), UltraISO (likely), or Nero (no way) was adding this character to my config file!!! WTF?! I don't even know how this happens... one more case for Linux I suppose. Baffled me though that's for sure!

Anyway, I was able to fix by editing the iso in Linux. Creating the ks.cfg file in Linux and then repacking/creating the iso (make sure you copy your .discinfo file into the iso!!!!) and burning it. Problem solved.

Hope this helps some others out...

QUOTE: First time posting... but I've used these forums for a LOT of support so I must throw a thanks to everyone that has ever replied and tried to help someone out. You all are a huge benefit to the Linux community!

That being said, I can't find ANYONE that is having a similar problem to mine when trying to do a cd based kickstart install. My problem is this:

Everything installs fine using the anaconda generated kickstart file... until it gets to the %post section. Once here, it doesn't matter WHAT commands I give it to run, it crashes and errors out every time. For the sake of simplicity, and since the rest of the install runs, I'll only include the post section. It is:

%post --erroronfail
/usr/sbin/useradd -c "test" -m -d /home/test2 test

That's it. I just want to add a user. When it runs, it completes the install and the crashes upon entering the post section. When I jump over to tty3 I see this error message (no, it's not a typo, this is exactly what it says):

'seradd: invalid user name 'test

It doesn't matter what user name I give it and it doesn't matter if I put the full path in or not... it ALWAYS gives me that error. Talk about frusterating.

Luckily, I've found a CD-RW so I'm not having to take a second mortgage out on my house to pay for all the CD-Rs I'm turning into coasters.... ANY help would be GREATLY apprecaited. I've exhausted all my options and I'm throughly confused as to how something so simple could be such a PITA.

As an aside, when I perform the install using PXE and pull the ks.cfg file off of an http server, all my %post section scripts/commands run beautifully. Therefore, I can't see that my ks.cfg file is incorrectly formatted or syntatically incorrect.

Problem is, I NEED to be able to install from a CD and have the ks.cfg file located ON that CD. I can't use a floppy or have the machine connected to the net. It must be on a CD.


Thanks in advance.

Last edited by phatmack18; 9th November 2007 at 07:48 PM. Reason: Possible Solution
Reply With Quote

fedora, install, kickstart, post, problems, section

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
Kickstart %post install Script Help slops Using Fedora 2 5th December 2008 12:30 PM
fedora-8 PXE kickstart: %post fails ghrob Installation, Upgrades and Live Media 1 30th June 2008 02:12 PM
Fedora 7 post install problems Bad2theBone Installation, Upgrades and Live Media 1 15th October 2007 07:10 PM
Cdrom mounting problems during kickstart post installation nextgen Using Fedora 4 13th February 2007 05:23 AM
Kickstart Post Install script i2ambler Using Fedora 1 23rd August 2006 08:57 PM

Current GMT-time: 03:46 (Tuesday, 26-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