RE [Xen-users] kickstart %post not executed

Alain BARTHE
Wed, 06 Feb 2008 12:25:09 -0000

Hi Simone,

I suppose you mess something, because kickstart installations run quite
fine for us.

You should try to put the following lines at the beginning of the %post
part to see what''s happen:

exec < /dev/tty8 &> /dev/tty8
chvt 8
set -x
read foo

By this way, the %post commands may be seen on the 8th console (alt-F8).
The "read foo" command pauses the execution, you have to type
<cr> to go
on.

Cheers
Alain.

xen-users-bounces@lists.xensource.com a écrit sur 06/02/2008 12:42:43 :

> Hi all,
>
> I am trying to automate the provisioning of a few VM, dom0 CentOS5 -
> domU CentOS4.5, the installation goes well but it completely ignores
> the %post bit in the kickstart:
>
> # Kickstart file for a generic VM
> install
> url --url http://server/mrepo/centos4-x86_64/disc1
> cmdline
> skipx
> reboot
>
> # Partition information
> .....
>
> # General system config
> bootloader --location=mbr
> keyboard uk
> lang en_GB.UTF-8
> langsupport en_GB.UTF-8
> timezone --utc GMT
> mouse none
>
> # Network information
> network --device eth0 --bootproto dhcp
>
> # Security bits
> authconfig --enableshadow --enablemd5 --enablecache
> rootpw --iscrypted somepasswd
> firewall --disabled
> selinux --disabled
>
>
> %packages
> @core
>
>
> %post
> echo "Now starting post install"
> mkdir /tmp/VM
>
> Is this a known problem or am I doing something wrong?
>
> Thanks
>
> Simone_______________________________________________
> Xen-users mailing list
> Xen-users@lists.xensource.com
> http://lists.xensource.com/xen-users