[LinuxFailSafe] Installing failsafe from 'kickstart'
yocum at linuxcare.com
Wed Aug 2 07:13:23 MDT 2000
When I was at Fermilab we made our own distro based on Red Hat that does
*exactly* what you want to do - runs scripts inside (and outside) the
chrooted environment at the end of the Red Hat install process. The
only thing we didn't do was add the ability to get user input for
scripts, such as fsintall.
To be honest I didn't work on that part of the distro, but all the work
that was done is open source, of course, and available in the install
And the person to contact, if you have questions, is Connie Sieh:
csieh at fnal.gov.
"Eric Z. Ayers" wrote:
> OK, there is something somewhat unrelated to all that other stuff that I
> would like to run by the developers.
> Basically, I'm writing a kickstart install script for redhat. I put
> all of the failsafe rpms in the file it that I'm interested in and
> they get installed just fine (after running genhdlist). My dilemma is
> this; you get a section at the end to run a bunch of shell commands
> after the installation completes, but you don't have access to the
> installation media anymore, because it's running in a 'chroot'
> I'd like to run the commands:
> $FAILSAFEINSTALLDIR/guiinstall server
> $FAILSAFEINSTALLDIR/guiinstall client (remember -I'm exporting my display)
> Here are the problems:
> 1) I've installed the rpms, but AFAIK, I don't have the fsinstall or
> guiinstall scripts anywhere on the filesystem. I could make a
> little RPM that contained the install scripts, but I was kind of
> hoping that you guys could just add the scripts to the RPMs so
> they would be there
> 2) The fsinstall script prompts the user. This isn't good for my
> kickstart script. I'd like to pass it a command line flag to
> tell it on install to create the config file. Similarly, on
> upgrade installation, I'd like to pass it a flag to just leave
> the database alone.
> Since I don't have the source at my
> disposal yet, Is there some kind of flag we can pass to
> /usr/sbin/cdbreinit so it won't ask the question? I see that if
> I pass it an argument --help and it munched away for a little
> while and came back empty handed (YIKES! what did I do?)
> FYI, I thought of a way to work around this, but I like the method I
> proposed above better. The workaround would be:
> pass a --chroot flag to the %post section,
> copy the scripts from the distribution media
> Do a manual 'chroot' command and
> run the rest of my customized stuff
> run the failsafe scripts:
> echo y | $FAILSAFEINSTALLDIR/fsinstall
> In the end, I'd like to also define the cluster, resources, and
> resource groups from a script using cluster_mgr. (Does anyone have
> an example?)
> LinuxFailSafe mailing list
> LinuxFailSafe at lists.tummy.com
Dan Yocum, Sr. Linux Consultant
yocum at linuxcare.com, http://www.linuxcare.com
Linuxcare. Support for the revolution.
More information about the LinuxFailSafe