This ks script isn't working on CentOS 4.8... Should it?

Shabazian, Chip chip.shabazian at bankofamerica.com
Thu Nov 19 20:37:35 UTC 2009


The kickstart file is read multiple times, but you cannot %include
certain items such as the source of your install files.

-----Original Message-----
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Terry McIntyre
Sent: Thursday, November 19, 2009 12:29 PM
To: Discussion list about Kickstart
Subject: Re: This ks script isn't working on CentOS 4.8... Should it?

Inline redirection, like this, will make it easier to read your script.

cat > /tmp/part-include << TAG
part /boot        --size=200      --asprimary     --ondisk=sda
part /            --size=20000    --asprimary     --ondisk=sda
part swap --size=1000     --asprimary     --ondisk=sda
part /backup      --size=5000                     --ondisk=sda
part /u           --size=1        --grow          --ondisk=sda
TAG

Test your script on a working machine before trying to use it for
kickstart.

Test bits of the script in isolation, then put them all together.

Lastly, I don't know whether kickstart supports an include which
refers to a file which is created by the kickstart itself. You are
essentially asking kickstart to read the file, process the %pre block,
and then re-read the file. Some processors might read the file only
once, parsing and reading all include directives along the way, and
execute the %pre block, and then execute the main body - the contents
of which may already have been frozen. The question ( to which I have
no answer ) is "when does kickstart expand include directives?"

YMMV.

Good luck.

_______________________________________________
Kickstart-list mailing list
Kickstart-list at redhat.com
https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list