Date: Sat, 27 Jul 2002 17:21:36 -0700 From: "Kevin Oberman" <oberman@es.net> To: Chris Pepper <pepper@reppep.com> Cc: Paulo Fragoso <paulo@nlink.com.br>, Alexandr Kovalenko <never@nevermind.kiev.ua>, Gavin Atkinson <gavin@ury.york.ac.uk>, Michiel Boland <boland@alexander.diva.nl>, freebsd-stable@FreeBSD.ORG Subject: Re: 4.6-RELEASE -> 4.5-RELENG Message-ID: <20020728002136.AACA05D03@ptavv.es.net> In-Reply-To: Your message of "Thu, 25 Jul 2002 23:54:13 EDT." <a05200306b966775f18a9@[64.81.19.109]>
next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Thu, 25 Jul 2002 23:54:13 -0400 > From: Chris Pepper <pepper@reppep.com> > > At 10:56 AM -0700 2002/07/10, Kevin Oberman wrote: > > > Date: Wed, 19 Jun 2002 15:14:00 -0300 (BRT) > >> From: Paulo Fragoso <paulo@nlink.com.br> > >> Sender: owner-freebsd-stable@FreeBSD.ORG > >> > >> On Wed, 19 Jun 2002, Alexandr Kovalenko wrote: > >> > >> > You also should update your MAKEDEV script with mergemaster. > >> > And to sh MAKEDEV all again. Device minor/major numbers was changed with > >> > ata(4) MFC. > >> > >> After we redid all following this steps: > >> > >> make buildworld > >> make installworld > >> make buildkernel KERNCONF=KERNEL6 > >> make installkernel KERNCONF=KERNEL6 > >> mergemaster -a > >> cd /dev && sh MAKEDEV all > >> > >> and restoring some files from backup (group, rc.firewall, etc), all > >> is working fine. > > > >I keep posting this because people keep building new systems in a > >dangerous way. > > > >Doing the installworld before building and booting the new kernel is > >very risky. It will almost always make no difference, but, on the > >rare occasions when it does, it will leave you with a VERY sick > >system and the only way out maybe to re-install FreeBSD from scratch. > > > >While there are a few niggles, the proper sequence is: > >mergemaster -p (This is NEW!) > >make buildworld > >make kernel KERNCONF=your_kernel_conf_name > > Why not 'make installkernel' per > <http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html>? > Is there a problem with the Handbook? Just to save keystrokes when you will be installing the new kernel immediately after building. The 'kernel' make object is literally 'buildkernel installkernel'. There is no real difference and, if you don't want to install the new kernel immediately, buildkernel is the proper thing to do. > >REBOOT into single-user mode! (This does not mean drop to single user.) > > Why? Is this to test installkernel -- which I don't see in > your list? I've been using "shutdown now" successfully for a while > now; much easier not to have to remount & set the TZ before > installkernel, then rebooting (multi) to test the kernel, then > "shutdown now" to installworld. It is to confirm that the newly built (and installed) kernel works. IF you find the new kernel does not work, no big. Just boot kernel.old and figure out why it failed. But, if you have already done an installworld, you may not be able to do that. This may mean re-installing the system from scratch with significant down-time. A bad kernel is easy to recover from. A kernel that will not run with the installed userland is almost impossible to fix. I am confused as to what is do difficult about "mount -a -t ufs"? You don't re-boot multi until the installworld is completed. Once again: make kernel (or installkernel) KERNCONF=your_conf_file reboot hit a space while the loader is counting down and: boot -s fsck -p (not really required, but I am paranoid) mount -a -t ufs cd /usr/src make installworld mergemaster -i (or you favorite mergemaster invocation) exit (or reboot) If you exit to multi-user mode, this requires exactly one reboot and the mount command. I fail to see why this is a hardship unless you don't have console access. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020728002136.AACA05D03>