FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 07-04-2008, 04:12 AM
"Amos Shapira"
Default Anaconda ignores "cmdline" directive


Our environment: CentOS 5.2 (updated over time with "yum update",
current "yum update" lists about 7 packages out of date), x86_64.
Running Xen, building Xen DomU's with kickstart.

We are trying to debug the %post part of the kickstart process for
DomU and are hitting difficulties in accessing the output.

For a start, the "cmdline" directive in the kickstart seems to be
ignored and it stays in "text" (ncurses) mode.

Here is the kickstart file we use:

url --url http://a.b.c.d/centos/5.2/os/x86_64
logging --level=debug
lang en_US.UTF-8
network --device eth0 --bootproto static --ip=a.b.c.e
--netmask= --gateway=a.b.c.f --nameserver=a.b.c.g
--hostname domu-hostname
rootpw --iscrypted $1$password
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc Australia/Sydney
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
# Partitioning
clearpart --all --initlabel --drives=xvda
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=0 --grow --ondisk=xvda
volgroup xxx --pesize=32768 pv.2
logvol / --fstype ext3 --name=root --vgname=xxx --size=1024 --grow
logvol swap --fstype swap --name=swap --vgname=xxx --size=256 --grow
%packages --nobase
set -x
echo hello world

Can anyone point what are we missing?

Googl'ing around just keeps coming up with pages saying that this
should work (e.g. "Running anaconda in real text-mode" and "Logging
%pre and %post" in http://wiki.centos.org/TipsAndTricks/KickStart) but
the problem so far still remains that Anaconda uses ncurses, not


CentOS mailing list
Old 07-04-2008, 01:01 PM
Kai Schaetzl
Default Anaconda ignores "cmdline" directive

Amos Shapira wrote on Fri, 4 Jul 2008 14:12:41 +1000:

> For a start, the "cmdline" directive in the kickstart seems to be
> ignored and it stays in "text" (ncurses) mode.

I'm using cmdline all the time and there *is* a difference to text. The
output is b/w and if it has to fallback to the "gui" that gets drawn with
ascii characters and not with "blocks" and such.
What's the output that you get? I wouldn't say that "cmdline" is any
better for debugging apart from the fact that you get most output line by
line, so you can review it later. This line by line output mostly applies
to the list of software that gets installed. I don't have a %post% install
section. AFAIk, postinstall is a problem as it isn't run as root or so
(see deployment guide section for kickstart).


Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com

CentOS mailing list

Thread Tools

All times are GMT. The time now is 05:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org