From owner-freebsd-questions@FreeBSD.ORG Wed Jan 31 04:05:40 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80FCC16A402 for ; Wed, 31 Jan 2007 04:05:40 +0000 (UTC) (envelope-from rhyous@yahoo.com) Received: from web52105.mail.yahoo.com (web52105.mail.yahoo.com [206.190.48.108]) by mx1.freebsd.org (Postfix) with SMTP id 353B113C442 for ; Wed, 31 Jan 2007 04:05:40 +0000 (UTC) (envelope-from rhyous@yahoo.com) Received: (qmail 51752 invoked by uid 60001); 31 Jan 2007 04:05:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=FeEY7LhJ2nRIJfWOqxeuc0VuDFF6T+dDLA2CAt0YlAcY0w2lu/4j45ROENT4TsOvad4yfm+Lf5LaIuTjDSxnr9CHUxPb7iiTrFh/pqGm5uqGsBHAFT/KsodJoccHkpiXQrn8ME61WrzjZtswttJyIMXfJYUg7IFn6wt5R2DFye0=; X-YMail-OSG: bpppWMUVM1l5ejMToofdeK._DVdNM3Egp9LtD3ZYUvLxYhAIotkBi0JTQeB6KrVEvGOwVbND2JIgkW79U9anK_htv981LOHwVKCYFYwIPPL1BnCD8wn6ZA-- Received: from [71.199.6.76] by web52105.mail.yahoo.com via HTTP; Tue, 30 Jan 2007 20:05:39 PST Date: Tue, 30 Jan 2007 20:05:39 -0800 (PST) From: Jared Barneck To: ceri@submonkey.net, freebsd-doc@FreeBSD.org In-Reply-To: <332766.3608.qm@web52113.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <401057.51722.qm@web52105.mail.yahoo.com> Cc: trhodes@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: man sysinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rhyous@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2007 04:05:40 -0000 --- Jared Barneck wrote: > > --- "mailinglists@bsdcertification.com" > wrote: > > > Ceri Davies wrote: > > > > >On Thu, Jan 25, 2007 at 07:28:39PM -0500, Tom > > Rhodes wrote: > > > > > > > > >>On Thu, 25 Jan 2007 14:54:47 +0000 > > >>Ceri Davies wrote: > > >> > > >> > > >> > > >>>On Wed, Jan 24, 2007 at 11:05:13PM -0800, BSD > > Certification Team wrote: > > >>> > > >>> > > >>>>Hello all, > > >>>> > > >>>>The man page for sysinstall is pretty out of > > date. I > > >>>>am trying to PXE boot to an unattended > install. > > >>>> > > >>>>I figured out that I needed to add dists=base > > kernels > > >>>>GENERIC even though kernels and GENERIC are > not > > in the > > >>>>list in the man page. > > >>>> > > >>>>Is there anyone in charge of updating this > > >>>>information? I have never submitted an > update. > > >>>> > > >>>> > > >>>I guess that's me. Could you please raise a PR > > and send me the number? > > >>> > I sent in a PR. Let me know if you don't get it. > > >>> > > >>I tried with almost every version of 5.X to get > an > > unattended > > >>install working. Never worked. It seems as if > > sysinstall > > >>was looking only for a USB floppy drive. > > Originally I started > > >>looking over the code to send in a PR and > perhaps > > a patch, > > >>but became busy with other things. > > >> > > >> > > > > > >I can't speak for 5.x because I didn't really run > > it, but this worked > > >for 6.x a year ago: > > http://typo.submonkey.net/articles/2006/02/12/ > > > > > > > > > > > I am actually pxe booting to it now. However, I > am > > using pxe-1.4.2 > > instead of having it all in the dhcp config. > > > > Also, I saw a not that the floppy drive is not > > working. I couldn't get > > it to work either. I am doing this all PXE style. > > > I was using FreeBSD, isc-dhcp-server, pxe-1.4.2, and > tftp and ftp from inetd to pxe boot and didn't > really > try the floppy so I tried the floppy. > > I have tested two separate hardware machines and > VMWare 5.d and I cannot get the floppy to detect > and > read the install.cfg. I have tried both MS-DOS > floppy > and a floppy formatted with UFS, so I am guessing > this > is broken too. > > So with the PXE solution, I have almost everything > working: I cannot get the machine to automatically > reboot. This is the one last thing I need for full > automation. > > So it looks like there are three issues that some of > us who "donate time" could address: > > 1. Update man sysinstall which I submitted a PR for. > 2. Fix the floppy not being detected. > 3. Figure out how to reboot once the unattended > install completes. I found the answer for how to reboot in the code. To reboot add the following to the end of the install.cfg: shutdown I found it in this source file: /usr/src/usr.sbin/sysinstall/dispatch.c This source file has a list of a lot of the functions that can be called in the install.cfg. Even though the function is called "shutdown" it is a reboot not a shutdown, which is perfect because I wanted it to reboot. Also, I found that a lot of variables are in this file: /usr/src/usr.sbin/sysinstall/sysinstall.h I will try write a few changes to the man page, and send it to you with a diff file and get you my working install.cfg in my next email. > > > > > >The OP's note about adding the kernels line is > > definitely needed and I'll > > >fix that (though I would really love a PR for > it), > > but for anything > > >else, you have to send hardware (a laptop or > > Soekris, I'm not fussy!) :) > > > > > >Ceri > > > > > > > > I will settle for the updated man page for now. I > wish I could just send everyone a laptop. :-) > > > > > ____________________________________________________________________________________ > Don't get soaked. Take a quick peak at the forecast > with the Yahoo! Search weather shortcut. > http://tools.search.yahoo.com/shortcuts/#loc_weather > ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php