From owner-failsafe@oss.sgi.com Wed Aug 2 06:14:41 2000 Received: by oss.sgi.com id ; Wed, 2 Aug 2000 06:14:31 -0700 Received: from chicago.linuxcare.com ([216.254.51.11]:55037 "EHLO topaz.linuxcare.com") by oss.sgi.com with ESMTP id ; Wed, 2 Aug 2000 06:13:48 -0700 Received: from linuxcare.com (IDENT:yocum@localhost.localdomain [127.0.0.1]) by topaz.linuxcare.com (8.9.3/8.9.3) with ESMTP id IAA00898; Wed, 2 Aug 2000 08:13:23 -0500 Message-ID: <39881E73.9F8D26F1@linuxcare.com> Date: Wed, 02 Aug 2000 08:13:23 -0500 From: Dan Yocum Organization: Linuxcare, Inc. X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: Eric.Ayers@compgen.com CC: linuxfailsafe@lists.tummy.com, failsafe@oss.sgi.com Subject: Re: [LinuxFailSafe] Installing failsafe from 'kickstart' References: <14725.60457.618764.240162@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-failsafe@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;failsafe-outgoing Erik, 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 source tree: ftp://linux1.fnal.gov/linux/611/i386/misc/src/anaconda/ And the person to contact, if you have questions, is Connie Sieh: csieh@fnal.gov. Cheers, Dan "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' > environment. > > I'd like to run the commands: > > $FAILSAFEINSTALLDIR/fsinstall > $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?) > > -Eric. > > _______________________________________________ > LinuxFailSafe mailing list > LinuxFailSafe@lists.tummy.com > http://lists.tummy.com/mailman/listinfo/linuxfailsafe -- Dan Yocum, Sr. Linux Consultant Linuxcare, Inc. 630.697.8066 tel yocum@linuxcare.com, http://www.linuxcare.com Linuxcare. Support for the revolution.