Edward F. Brown wrote:
On Fri, October 27, 2006 11:20 am, Greg Dickie wrote:
Could you not just call bash in the %post for that?
Yes, and we do. Like Christopher, we make extensive use of %post.
However, as just about every other post to this or the kickstart list
indicates, developing, debugging, and maintaining %post scripts is not
easy or well understood. "We strive for minimal %post scripts" or "we
only use %post to install our real post-install script to run on
There must be something I don't understand; the principal difficulty _I_
see with debugging %post scripts is the time it takes to get there.
To alleviate the boredom, I wrap the the while in
(
) 2>&1 | mail -s 'Installation report' summer@xxxxxxxx
and just ignore the whole thing.
If I need to intrude, I am happy to insert the command "/bin/sh" or
similar, and maybe run that bit as a separate script.
firstboot" are common conclusions. The simple ability to display messages
I used the firstboot idea before RH released firstboot, and it's
certainly one way to get to the point of the whole idea fairly quickly,
and one _could_ have a "restore to pristine" first (depending on what
hackery one's inflicting, of course).
or progress indications from %post to anaconda's display as Christopher is
proposing, without having to code your own chvt's etc. in %post, would be
a huge improvement. And likewise to be able to signal anaconda to suspend
%post (and from there to resume) would allow a native, documented,
flexibility and robustness that now is a wheel for each kickstart
developer to reinvent, if they have the time or persistence to do it for
themselves.
_I_ don't see how that's simpler than a simple call to bash; the latter
has the great merit it can't be so simply overlooked by those who don't
RTFM, and I'm sure we're all guilty of that at times.
I'm not generally a fan or progress meters, especially when they stop
for extended periods.
That said, I found a crossdev script on my Gentoo system - no docs but
it looks interesting - so I'm giving that a run. It's been running for
hours, saying very little and had me wondering....
Seems it's building binutils, gcc and who knows what else - glibc likely
- to set up a cross development environment. It's writing log files, not
too differently from what I do with my mail example above. Use of tee
would both inform users that something is indeed happening, and also
create the logs. I think tee is easier to use than some progress meter,
and a more reliable indication that something's happening.
--
Cheers
John
-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx Z1aaaaaaa@xxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
Please do not reply off-list