List Info

Thread: Debugging kickstart general advice sought




Debugging kickstart general advice sought
country flaguser name
United Kingdom
2008-04-21 10:48:00

Hi

I am debugging a problem with my kickstart but am founding it immensely cumbersome to rebuild a machine everytime just to test the last part of the install a stubborn pre-post script that does not want to work. I’ will probably ask a question about it here later on.

 

Can anyone suggest a more productive way of debugging kickstart files that takes up less time than actually building a machine each time?

 

Regards

RE: Debugging kickstart general advice sought
country flaguser name
United Kingdom
2008-04-21 10:55:47
I use sleep a lot and () >
/mnt/sysimage/root/nochroot-post.log 2>&1 but
apart from that there must be an easier way.

Regards

________________________________________
From: kickstart-list-bouncesredhat.com
[mailto:kickstart-list-bouncesredhat.com] On Behalf Of
Gerrard
Geldenhuis
Sent: 21 April 2008 16:48
To: Discussion list about Kickstart
Subject: Debugging kickstart general advice sought

Hi
I am debugging a problem with my kickstart but am founding
it immensely
cumbersome to rebuild a machine everytime just to test the
last part of
the install a stubborn pre-post script that does not want to
work. I'
will probably ask a question about it here later on.

Can anyone suggest a more productive way of debugging
kickstart files
that takes up less time than actually building a machine
each time?

Regards

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


Re: Debugging kickstart general advice sought
country flaguser name
United States
2008-04-21 11:06:37
Gerrard Geldenhuis wrote:
> I use sleep a lot and () >
/mnt/sysimage/root/nochroot-post.log 2>&1 but
> apart from that there must be an easier way.
>
>   

I use sleep between commands so I can see whats going on,
and do my 
testing in VMWare. Still cumbersome though.

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


Re: Debugging kickstart general advice sought
country flaguser name
Spain
2008-04-21 11:07:41
	What I do is to use the following trick:

	%pre
	(
	commands
	)|tee -a /tmp/pre.log

	%post --nochroot
	(
	commands
	cp /tmp/pre.log /mnt/sysimage/root/pre.log
	) |tee -a /mnt/sysimage/root/post.log


	And of course, lot's of "echo", and
"read" if you want to do some
pause ;)

	Regards
	Pablo




-- 
Pablo Iranzo Gómez
(http://Alufis35.uv.es/
~iranzo/)
(PGPKey Available on http://www.uv.es
/~iranzop/PGPKey.pgp)
                  --
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Mon, 21 Apr 2008, Gerrard Geldenhuis wrote:

> Hi
>
> I am debugging a problem with my kickstart but am
founding it immensely
> cumbersome to rebuild a machine everytime just to test
the last part of
> the install a stubborn pre-post script that does not
want to work. I'
> will probably ask a question about it here later on.
>
>
>
> Can anyone suggest a more productive way of debugging
kickstart files
> that takes up less time than actually building a
machine each time?
>
>
>
> Regards
>
>

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


Re: Debugging kickstart general advice sought
user name
2008-04-21 11:09:54
Gerrard Geldenhuis wrote:
> Hi
> 
> I am debugging a problem with my kickstart but am
founding it immensely
> cumbersome to rebuild a machine everytime just to test
the last part of
> the install a stubborn pre-post script that does not
want to work. I'
> will probably ask a question about it here later on.
> 
>  
> 
> Can anyone suggest a more productive way of debugging
kickstart files
> that takes up less time than actually building a
machine each time?
> 

If your just debugging, you might want to just install the
core
systems and additionally install the packages that are used
for the post script.  In this way you wont have to install
1000 packages but just a couple of hundred.

-- 
Joel Andres Granados
Red Hat / Brno, Czech Republic

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


RE: Debugging kickstart general advice sought
country flaguser name
United Kingdom
2008-04-21 11:15:20
Yikes,

I imagined that there could(should?) be a way to do a
"state" change that would allow you to return to a
previous state/position in the kickstart and try something
again. 

Does anybody use the debug mode or now how to use it? I am
not sure how to start it at will.

Regards

> -----Original Message-----
> From: kickstart-list-bouncesredhat.com
[mailto:kickstart-list-
> bouncesredhat.com] On Behalf Of Pablo Iranzo Gómez
> Sent: 21 April 2008 17:08
> To: Discussion list about Kickstart
> Subject: Re: Debugging kickstart general advice sought
> 
> 	What I do is to use the following trick:
> 
> 	%pre
> 	(
> 	commands
> 	)|tee -a /tmp/pre.log
> 
> 	%post --nochroot
> 	(
> 	commands
> 	cp /tmp/pre.log /mnt/sysimage/root/pre.log
> 	) |tee -a /mnt/sysimage/root/post.log
> 
> 
> 	And of course, lot's of "echo", and
"read" if you want to do some
> pause ;)
> 
> 	Regards
> 	Pablo
> 
> 
> 
> 
> --
> Pablo Iranzo Gómez
> (http://Alufis35.uv.es/
~iranzo/)
> (PGPKey Available on http://www.uv.es
/~iranzop/PGPKey.pgp)
>                   --
> Postulado de Boling sobre la Ley de Murphy:
> 
> Si se encuentra bien, no se preocupe. Se le pasará
> 
> On Mon, 21 Apr 2008, Gerrard Geldenhuis wrote:
> 
> > Hi
> >
> > I am debugging a problem with my kickstart but am
founding it immensely
> > cumbersome to rebuild a machine everytime just to
test the last part of
> > the install a stubborn pre-post script that does
not want to work. I'
> > will probably ask a question about it here later
on.
> >
> >
> >
> > Can anyone suggest a more productive way of
debugging kickstart files
> > that takes up less time than actually building a
machine each time?
> >
> >
> >
> > Regards
> >
> >
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-listredhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list


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


RE: Debugging kickstart general advice sought
country flaguser name
United Kingdom
2008-04-21 11:16:40
> 
> If your just debugging, you might want to just install
the core
systems
> and additionally install the packages that are used for
the post
script.
> In this way you wont have to install 1000 packages but
just a couple
of
> hundred.

Aggreed, I do that already and my install is very small,
relatively
anyway. It takes about 1min30sec, but that is still a long
time to wait.

Regards

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


RE: Debugging kickstart general advice sought
country flaguser name
United Kingdom
2008-04-21 12:39:01
> -----Original Message-----
> From: kickstart-list-bouncesredhat.com
[mailto:kickstart-list-
> bouncesredhat.com] On Behalf Of Pablo Iranzo Gómez
> Sent: 21 April 2008 17:08
> To: Discussion list about Kickstart
> Subject: Re: Debugging kickstart general advice sought
> 
> 	What I do is to use the following trick:
> 
> 	%pre
> 	(
> 	commands
> 	)|tee -a /tmp/pre.log
> 
> 	%post --nochroot
> 	(
> 	commands
> 	cp /tmp/pre.log /mnt/sysimage/root/pre.log
> 	) |tee -a /mnt/sysimage/root/post.log
> 
> 
> 	And of course, lot's of "echo", and
"read" if you want to do some
> pause ;)
> 
> 	Regards
> 	Pablo

Does the tee trick catch all stdout and stderr messages?

Regards

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


RE: Debugging kickstart general advice sought
country flaguser name
Spain
2008-04-21 15:30:34
	Hi

	You can put  before the "|" one 2>&1 to
get every single message on files

	Regards
	Pablo






-- 
Pablo Iranzo Gómez
(http://Alufis35.uv.es/
~iranzo/)
(PGPKey Available on http://www.uv.es
/~iranzop/PGPKey.pgp)
                  --
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Mon, 21 Apr 2008, Gerrard Geldenhuis wrote:

> > -----Original Message-----
> > From: kickstart-list-bouncesredhat.com
[mailto:kickstart-list-
> > bouncesredhat.com] On Behalf Of Pablo Iranzo
Gómez
> > Sent: 21 April 2008 17:08
> > To: Discussion list about Kickstart
> > Subject: Re: Debugging kickstart general advice
sought
> >
> > 	What I do is to use the following trick:
> >
> > 	%pre
> > 	(
> > 	commands
> > 	)|tee -a /tmp/pre.log
> >
> > 	%post --nochroot
> > 	(
> > 	commands
> > 	cp /tmp/pre.log /mnt/sysimage/root/pre.log
> > 	) |tee -a /mnt/sysimage/root/post.log
> >
> >
> > 	And of course, lot's of "echo", and
"read" if you want to do some
> > pause ;)
> >
> > 	Regards
> > 	Pablo
>
> Does the tee trick catch all stdout and stderr
messages?
>
> Regards
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-listredhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list

>

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


Re: Debugging kickstart general advice sought
user name
2008-04-22 13:33:13
On Apr 21, 2008, at 12:15 PM, Gerrard Geldenhuis wrote:

> Yikes,
>
> I imagined that there could(should?) be a way to do a
"state" change  
> that would allow you to return to a previous
state/position in the  
> kickstart and try something again.
>
This is why I use vmware for testing, you can let the
install get up  
to the point where you want to test, create a snapshot, let
it  
continue, and then roll back to that snapshot at any point.

-- 
Jason Kohles, RHCA RHCDS RHCE
emailjasonkohles.com - http://www.jasonkohles.co
m/
"A witty saying proves nothing."  -- Voltaire


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


[1-10] [11]

about | contact  Other archives ( Real Estate discussion Medical topics )