From owner-freebsd-config Thu Feb 15 5:17:12 2001 Delivered-To: freebsd-config@freebsd.org Received: from fox.amnesty.org (fox.amnesty.org [194.131.159.110]) by hub.freebsd.org (Postfix) with ESMTP id 3306537B65D for ; Thu, 15 Feb 2001 05:17:08 -0800 (PST) To: freebsd-config@freebsd.org Subject: Custom installation using boot.flp (2.88) MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: falbu@amnesty.org Date: Thu, 15 Feb 2001 13:06:23 +0000 X-MIMETrack: Serialize by Router on fox/I.S./Amnesty International(Release 5.0.5 |September 22, 2000) at 15/02/2001 13:17:29, Serialize complete at 15/02/2001 13:17:29 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello list, Background: I am using FreeBSD 4.1 and I have to perform the same installation on multiple servers with identical hardware. I am trying to use the sysinstall feature, that is to have a customized install.cfg in the root folder. The resources I found so far, which are somehow related to this subject, were: http://people.freebsd.org/~alfred/pxe/ (Thanks to Alfred Perlstein) I have managed so far to add it to the floppy image msfroot.flp with the following procedure: cp /dist/floppies/msfroot.flp /tmp vnconfig vn0 /tmp/mfsroot.flp mount /dev/vn0 /mnt cp /mnt/msfroot.gz /tmp umount /mnt vnconfig -u vn0 gunzip /tmp/msfroot.gz vnconfig vn0 /tmp/msfroot mount /dev/vn0 /mnt and copy now the customized install.cfg to the root in /mnt Problem: I was trying to do the same for boot.flp (the 2.88 MB image), so that I can burn a bootable CD with it. However, when I mount boot.flp using the procedure described above, I can see that the contents of it is quite different. Question: What is the structure of boot.flp and how can I add a file to it in the same way I did with msfroot.flp? I couldn't find any documentation about how to modify boot.flp. Many thanks, Florentin Albu Client-Server Systems Manager falbu@amnesty.org _________________________________________________________ Amnesty International, International Secretariat visit us at http://www.amnesty.org Be Realistic! Plan for a Miracle! ONE click to stamp out torture. http://www.stoptorture.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Thu Feb 15 10:35:53 2001 Delivered-To: freebsd-config@freebsd.org Received: from winston.osd.bsdi.com (winston.osd.bsdi.com [204.216.27.229]) by hub.freebsd.org (Postfix) with ESMTP id F249137B491 for ; Thu, 15 Feb 2001 10:35:51 -0800 (PST) Received: from winston.osd.bsdi.com (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.2/8.11.1) with ESMTP id f1FIZbH93371; Thu, 15 Feb 2001 10:35:38 -0800 (PST) (envelope-from jkh@winston.osd.bsdi.com) To: falbu@amnesty.org Cc: freebsd-config@FreeBSD.ORG Subject: Re: Custom installation using boot.flp (2.88) In-Reply-To: Message from falbu@amnesty.org of "Thu, 15 Feb 2001 13:06:23 GMT." Date: Thu, 15 Feb 2001 10:35:37 -0800 Message-ID: <93366.982262137@winston.osd.bsdi.com> From: Jordan Hubbard Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Question: > What is the structure of boot.flp and how can I add a file to it in the > same way I did with msfroot.flp? The mfsroot is built right into the kernel on boot.flp and you basically need to build your own boot.flp image from scratch and carefully edit the contents of the mfsroot before it gets compressed and packed into the kernel. If you're really keen to learn how to do it, read /usr/src/release/Makefile very thoroughly and start building releases to learn how to do it. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Fri Feb 16 8:59:36 2001 Delivered-To: freebsd-config@freebsd.org Received: from fox.amnesty.org (fox.amnesty.org [194.131.159.110]) by hub.freebsd.org (Postfix) with ESMTP id 6CE8E37B401 for ; Fri, 16 Feb 2001 08:59:34 -0800 (PST) To: freebsd-config@FreeBSD.ORG Subject: How is the sysinstall launched? MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: falbu@amnesty.org Date: Fri, 16 Feb 2001 16:59:51 +0000 X-MIMETrack: Serialize by Router on fox/I.S./Amnesty International(Release 5.0.5 |September 22, 2000) at 16/02/2001 16:59:56, Serialize complete at 16/02/2001 16:59:56 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello gurus, I was wondering, when you boot from the floppy or the CD to install FreeBSD, where from is the sysinstall process launched? Many thanks, Florentin Albu Client-Server Systems Manager falbu@amnesty.org _________________________________________________________ Amnesty International, International Secretariat visit us at http://www.amnesty.org Be Realistic! Plan for a Miracle! ONE click to stamp out torture. http://www.stoptorture.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Fri Feb 16 12:10: 6 2001 Delivered-To: freebsd-config@freebsd.org Received: from camus.cybercable.fr (camus.cybercable.fr [212.198.0.200]) by hub.freebsd.org (Postfix) with SMTP id 6066537B401 for ; Fri, 16 Feb 2001 12:10:00 -0800 (PST) Received: (qmail 10202478 invoked from network); 16 Feb 2001 20:09:50 -0000 Received: from d165.dhcp212-231.cybercable.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by camus.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 16 Feb 2001 20:09:50 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.1/8.11.1) id f1GK9i625442; Fri, 16 Feb 2001 21:09:44 +0100 (CET) (envelope-from clefevre@poboxes.com) To: falbu@amnesty.org Cc: freebsd-config@FreeBSD.ORG Subject: Re: How is the sysinstall launched? References: X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C In-Reply-To: falbu@amnesty.org's message of "Fri, 16 Feb 2001 16:59:51 +0000" From: Cyrille Lefevre Reply-To: clefevre@poboxes.com Mail-Copies-To: never Date: 16 Feb 2001 21:09:42 +0100 Message-ID: Lines: 17 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG falbu@amnesty.org writes: > I was wondering, when you boot from the floppy or the CD to install > FreeBSD, where from is the sysinstall process launched? when the boot process is finished, the kernel try to launch one of the following commands in order : /sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall since the boot disk (mfsroot) don't have /sbin/init, /stand/sysinstall is use instead. Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Fri Feb 16 15:30:55 2001 Delivered-To: freebsd-config@freebsd.org Received: from fox.amnesty.org (fox.amnesty.org [194.131.159.110]) by hub.freebsd.org (Postfix) with ESMTP id D729337B491 for ; Fri, 16 Feb 2001 15:30:48 -0800 (PST) To: freebsd-config@freebsd.org Subject: 'system' function in install.cfg MIME-Version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 From: floral@care4free.net Message-ID: Date: Fri, 16 Feb 2001 23:31:04 +0000 X-MIMETrack: Serialize by Router on fox/I.S./Amnesty International(Release 5.0.5 |September 22, 2000) at 16/02/2001 23:31:11, Serialize complete at 16/02/2001 23:31:11 Content-Type: multipart/alternative; boundary="=_alternative 0080ABF8802569F5_=" Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multipart message in MIME format. --=_alternative 0080ABF8802569F5_= Content-Type: text/plain; charset="us-ascii" Hello gurus, I have an install.cfg file for an unattended setup. I am using it from the msfroot.flp to install the system from scratch. In a basic configuration (partition the hdd, install the bin distribution, a few packages and reboot the system) it works pretty well. However, I want to execute a small script before restarting the system . I am using the "system" function in install.cfg. For testing purposes I was trying to launch a shell with it. [...] installCommit system /bin/sh shutdown Next time I ran sysinstall it gave me an error, saying that it cannot find /bin/sh Since the unattended mode stopped after this error, I've switched to tty4 and I checked the existence of /bin/sh and the shell was there. Any ideas why it is not executing it? Many thanks, Florentin Albu Client-Server Systems Manager falbu@amnesty.org _________________________________________________________ Amnesty International, International Secretariat visit us at http://www.amnesty.org Be Realistic! Plan for a Miracle! ONE click to stamp out torture. http://www.stoptorture.org --=_alternative 0080ABF8802569F5_= Content-Type: text/html; charset="us-ascii"
Hello gurus,

I have an install.cfg file for an unattended setup.
I am using it from the msfroot.flp to install the system from scratch.

In a basic configuration (partition the hdd, install the bin distribution, a few packages and reboot the system) it works pretty well.

However, I want to execute a small script before restarting the system .
I am using the "system" function in install.cfg. For testing purposes I was trying to launch a shell with it.

[...]
installCommit
system /bin/sh
shutdown

Next time I ran sysinstall it gave me an error, saying that it cannot find /bin/sh
Since the unattended mode stopped after this error, I've switched to tty4 and I checked the existence of /bin/sh and the shell was there.

Any ideas why it is not executing it?

Many thanks,

Florentin Albu

Client-Server Systems Manager
falbu@amnesty.org
_________________________________________________________
        Amnesty International, International Secretariat
                    visit us at   http://www.amnesty.org

Be Realistic! Plan for a Miracle!


ONE click to stamp out torture.
                                  http://www.stoptorture.org
--=_alternative 0080ABF8802569F5_=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Fri Feb 16 16:33:59 2001 Delivered-To: freebsd-config@freebsd.org Received: from winston.osd.bsdi.com (winston.osd.bsdi.com [204.216.27.229]) by hub.freebsd.org (Postfix) with ESMTP id AB76337B503 for ; Fri, 16 Feb 2001 16:33:57 -0800 (PST) Received: from winston.osd.bsdi.com (jkh@localhost [127.0.0.1]) by winston.osd.bsdi.com (8.11.2/8.11.1) with ESMTP id f1H0XdH99088; Fri, 16 Feb 2001 16:33:41 -0800 (PST) (envelope-from jkh@winston.osd.bsdi.com) To: floral@care4free.net Cc: freebsd-config@FreeBSD.ORG Subject: Re: 'system' function in install.cfg In-Reply-To: Message from floral@care4free.net of "Fri, 16 Feb 2001 23:31:04 GMT." Date: Fri, 16 Feb 2001 16:33:39 -0800 Message-ID: <99084.982370019@winston.osd.bsdi.com> From: Jordan Hubbard Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > However, I want to execute a small script before restarting the system . > I am using the "system" function in install.cfg. For testing purposes I > was trying to launch a shell with it. > > [...] > installCommit > system /bin/sh > shutdown There's no argument passing supported with install.cfg (I know, yuck) which is why everything is done through the variable space. The system command takes the string to execute in the "command" variable. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message