Re: man sysinstall
On Wed, Jan 31, 2007 at 03:49:39PM +1100, Antony Mawer wrote: > On 31/01/2007 3:05 PM, Jared Barneck wrote: > ... > >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. > > I have a local patch that we use on our installation process that adds a > couple of new commands: > > poweroff - shutdown and power off the machine (useful for doing > installation, then shut down for shipping) > poweroffNoRC - as above, but don't attempt to write rc.conf > shutdownNoRC - like regular "shutdown" (reboot), but no rc.conf > > The latter two options are handy if you write your own scripts that > generate rc.conf, as normally sysinstall tries to write rc.conf itself > on shutdown, which clobbers any existing file your scripts may create. > > If anyone is interested and/or these are likely candidates for inclusion > then I can submit a PR to have someone check these in. I also have a man > page update that documents the above functions. Antony, please do. Thanks, Ceri -- That must be wonderful! I don't understand it at all. -- Moliere pgpo5YVk8k1gR.pgp Description: PGP signature
Re: man sysinstall
On Tue, Jan 30, 2007 at 08:05:39PM -0800, Jared Barneck wrote: > 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. Thank you Jared, I'll look forward to integrating it. Ceri -- That must be wonderful! I don't understand it at all. -- Moliere pgpUYcXKwx1vg.pgp Description: PGP signature
Re: man sysinstall
On 31/01/2007 3:05 PM, Jared Barneck wrote: ... 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. I have a local patch that we use on our installation process that adds a couple of new commands: poweroff - shutdown and power off the machine (useful for doing installation, then shut down for shipping) poweroffNoRC - as above, but don't attempt to write rc.conf shutdownNoRC - like regular "shutdown" (reboot), but no rc.conf The latter two options are handy if you write your own scripts that generate rc.conf, as normally sysinstall tries to write rc.conf itself on shutdown, which clobbers any existing file your scripts may create. If anyone is interested and/or these are likely candidates for inclusion then I can submit a PR to have someone check these in. I also have a man page update that documents the above functions. Cheers Antony ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man sysinstall
--- Jared Barneck <[EMAIL PROTECTED]> wrote: > > --- "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> 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 + > > >>Ceri Davies <[EMAIL PROTECTED]> 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man sysinstall
--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 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 + > >>Ceri Davies <[EMAIL PROTECTED]> 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. > > >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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man sysinstall
To: [EMAIL PROTECTED] From: Jared Barneck <[EMAIL PROTECTED]> Reply-To: Jared Barneck <[EMAIL PROTECTED]> Cc: X-send-pr-version: 3.113 X-GNATS-Notify: >Submitter-Id: current-users >Originator:Jared Barneck >Organization: www.bsdcertification.com >Confidential: no >Synopsis: sysinstall man page and example install.cfg need updated to include changes in 6.2 >Severity: non-critical >Priority: low >Category: docs >Class: doc-bug >Release: FreeBSD 6.2-RELEASE i386 >Environment: System: FreeBSD freebsd.bsdcertification.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 [EMAIL PROTECTED]:/ usr/obj/usr/src/sys/GENERIC i386 >Description: The man page for sysinstall was last updated in June of 2005 and the sample file is tagged as 2001. There have been many changes since these were written. The man page for sysinstall needs updated to match the new install settings. The install has changed in a few ways. For example, the dists variable now need to remove outdated options and add the new options such as: kernels GENERIC SMP. The example file is in the src tree under /usr/src/usr.sbin/sysinstall/install.cfg but no longer works in 6.2. A new sample file would be much appreciated. >How-To-Repeat: 1. Place the /usr/src/usr.sbin/sysinstall/install.cfg file on a floppy disk. 2. Edit the file for a given environment (replacing sample IPs, names, etc.) 3. Start an install. 4. Pass the install.cfg file to the installation. 5. It does not install a working system >Fix: I added the following to the dists variable and the system installed: kernels GENERIC I assume that SMP might be an option as well but this would have to be verified. There may be other options that are outdated. I can't seem to get the INDEX file to read. Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man sysinstall
On Thu, Jan 25, 2007 at 02:54:47PM +, 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? Actually, could you also (or just) send me your working install.cfg; I'm not in a position to text PXE at the moment and it will help me doublecheck that I'm doing it right. Thanks, Ceri -- That must be wonderful! I don't understand it at all. -- Moliere pgpwPJituPwrx.pgp Description: PGP signature
Re: man sysinstall
On Thu, Jan 25, 2007 at 07:28:39PM -0500, Tom Rhodes wrote: > On Thu, 25 Jan 2007 14:54:47 + > Ceri Davies <[EMAIL PROTECTED]> 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 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/ 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 -- That must be wonderful! I don't understand it at all. -- Moliere pgpB5NvrkjjFp.pgp Description: PGP signature
Re: man sysinstall
On Thu, 25 Jan 2007 14:54:47 + Ceri Davies <[EMAIL PROTECTED]> 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 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. -- Tom Rhodes ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: man sysinstall
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? Ceri -- That must be wonderful! I don't understand it at all. -- Moliere pgpdYbx5B4cJI.pgp Description: PGP signature
man sysinstall
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. Also the sample at /usr/src/usr.sbin/sysinstall/install.cfg is no longer up to date and does not work with 6.2-Release. Does anyone have a better up-to-date sample that could be used? Thanks, Jared 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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"