From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1a320c94e49342f9 X-Google-Attributes: gidfee84,public From: Steve Grandinetti Subject: Re: DU4.0 automatic installation Date: 1998/01/16 Message-ID: <34BF932D.794B@unx.dec.com>#1/1 X-Deja-AN: 316589851 Content-Transfer-Encoding: 7bit References: <6964is$2s8$1@highlander.immortels.frmug.org> To: carmier@immortels.frmug.org Content-Type: text/plain; charset=us-ascii Organization: Digital UNIX Installation Development Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 carmier@immortels.frmug.org wrote: > > Hi, > > I have to install 50 DWPS 433 under Digital Unix 4.0. I hope you mean V4.0B or later, as the ability to clone DIGITAL UNIX from a non-RIS distribution didn't exist until V4.0B. > > For these task, I manage to create a floppy with the following files : > - preinstall > - install.cdf > - postload > > With that floppy, I'm abble to install a station without being in front of to > answer all the question ( I was hoping ;-( ). But I don't manage the postload > file being run. > > I need to create a kernel without some option ( KDEBUG that make our debugguer > crash the station ) On the CDROM distribution, you want to take a look at the file ./usr/share/lib/kernel_options/.new..kernel_options.db. This is the file that has the mandatory kernel options defined. Read the comment header at the top of the file for an understanding of how "M", "O", and "Z" are used. If just the mandatory kernel options are fine for you, then just select "kernel_options=mandatory" in your CDF, and you're done. If you need to make other kernel options mandatory such that you can perform an unattended installation, you can make a copy of this file called "kernel_options.db" (NEVER EVER edit the .new..* version of the file!!!), and include the additional kernel options that you need to be mandatory in the kernel. During the "postload" operation, copy your modified "kernel_options.db" file to /mnt/usr/share/lib/kernel_options/kernel_options.db. Then, in your CDF, make sure you specify "kernel_options=mandatory", so only the mandatory kernel oprtions are built (automatically) into your kernel. >and some specific to our application ( maxusers, semmshl, > ... ). For these kernel tunables, you should use the syconfigdb(8) command to modify the proper subsytem attributes (e.g., maxusers, etc.) in ./etc/sysconfigtab. Note that at the time that the postload operation is run, the newly created file systems are mounted on /mnt, so ./etc/sysconfigtab is actually at /mnt/etc/sysconfigtab. You'll need to use the (I believe udocumented) "-t" flag to sysconfigdb: sysconfigdb -t /mnt/etc/sysconfigtab -f $tmpfile $subsys where "$subsys" is the kernel subsystem name that your targetting, and "$tmpfile" is the temporary file containing the new stanza-formatted attributes that you want to modify. > I also need to copy some principal file ( rc.config, /etc/hosts, /etc/svc.conf, > /etc/passwd, ... , /.profile ). Remember that the file systems are mounted on /mnt, so these files shoule be copied to /mnt/etc/ > > My postload file works well when it's run from command line, but it's never run > after the package installation. > > If someone can explain how to make this work or point me to documentation. The theory and operation of cloning and user supplied scripts (preinstall and postload) is well described in the V4.0B Installation Guide: (http://www.UNIX.digital.com/faqs/publications/pub_page/pubs_page.html) However, when it comes to writing the user supplied scripts, your basically on your own depending upon what you specifically need to accomplish. > > Thanks. > > P.S: I look at RIS software but I really don't need a so sofisticated software > for my works, and my manager will never be agree to buy the license. > -Steve.