From owner-freebsd-questions Fri Feb 16 15:30:56 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fox.amnesty.org (fox.amnesty.org [194.131.159.110]) by hub.freebsd.org (Postfix) with ESMTP id 105B337B503 for ; Fri, 16 Feb 2001 15:30:50 -0800 (PST) To: freebsd-questions@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:06 +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 0080B74B802569F5_=" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multipart message in MIME format. --=_alternative 0080B74B802569F5_= 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 0080B74B802569F5_= 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 0080B74B802569F5_=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message