<br><div><span class="gmail_quote">On 8/31/06, <b class="gmail_sendername">Ed Brown</b> <<a href="mailto:ebrown@lanl.gov">ebrown@lanl.gov</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
A 'debug mode' or error-handling framework<br>for %pre and %post scripts like I'm suggesting, would allow for far<br>easier development, and a more robust recovery capability, and allow<br>%post to be more fully utilized for what is was intended for, instead
<br>of resorting to post-post scripts.<br></blockquote></div><br>How would you build such a framework though?  I'm not a developer, so<br>I may be a bit limited in my thinking. I can think of 2 ways of accomplishing <br>this 'debug mode'.
<br><br>1. Build the interpreters into anaconda.  This would allow ananconda itself to<br>read the %pre and %post sections rather than handing it off to the external<br>interpreter and do the syntax checking and error-handling.However
, this would<br>make the anaconda code much larger than it should be and probably very<br>unmanagable.  I also imagine that this would start limiting the options that we<br>have for interpreters because we may not have solid dedicated contributers that
<br>would even want to jump into every possible interpreter to make it available.<br>Maybe we would, just not sure on that one.<br><br>2. Ask the maintainers of the interpreters' to build in this 'debug mode' that would<br>
probably only be useful in kickstarts.  I'm not sure how willing those maintainers<br>would be to add such a feature with such limited use.  They would probably be<br>more inclined to help if a patch was submited.<br><br>
IMHO, the Crtl-Alt-F2 tty is the debug mode.  I too run a complex environment<br>that utilizes a robust %post section as well as a first boot "post-post" install.   I use<br>both because it makes sense in my environment.  I have been able to do all of my
<br>%post testing and debuging from the F2 tty.  The shell that is provided is the exact environment that the %post runs in.  A chroot /mnt/sysimage will give you the default %post.  Not using the chroot command is the same as %post --nochroot, etc...
<br><br>Any other ideas, on how the debug mode/framework could live and work inside<br>anaconda?<br><br>-Jeremy, RHCE<br>