Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2001 13:54:19 -0700
From:      "brian j. peterson" <rbw@myplace.org>
To:        "Chad R. Larson" <chad@DCFinc.com>, freebsd-stable@FreeBSD.ORG, imp@village.org
Subject:   Re: problem with chflags
Message-ID:  <20010601135419.E30589@malkavian.org>
In-Reply-To: <200106012006.NAA17049@freeway.dcfinc.com>; from chad@DCFinc.com on Fri, Jun 01, 2001 at 01:06:55PM -0700
References:  <20010601100025.C30589@malkavian.org> <200106012006.NAA17049@freeway.dcfinc.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 01, 2001 at 01:06:55PM -0700, Chad R. Larson wrote:
> As I recall, brian j. peterson wrote:
> > as i learned very quickly the first time i tried to 'make world', the
> > directions in /usr/src/UPDATING are very general and leave out several
> > important steps of the process.
> 
> I'd bet Warner would appreciate patches to incorporate those
> important steps...

my main gripe with /usr/src/UPDATING (v 1.73.2.28 is the one i was using)
is that it suggests that you may need to go to singler user and doesn't
tell you what to do once there.  for once, i decided to actually follow
the directions that were given and i ended up with a system in single user
with / mounted read-only and none of my other filesystems even mounted.
luckily, i had a windows box next to me which allowed me to find the 
http://www.freebsd.org/doc/en_US.ISO_8859-1/books/handbook/makeworld.html
page and figure out what to do.  granted, i should probably have known
how to deal with things in single user better than i did, but i figured
the provided directions would be complete.  based on what i know, the
easiest way to fix these directions would be the following patch (again,
this is against v 1.73.2.28 but should be easily modified for RELENG_4):

% diff -u /usr/src/UPDATING.orig /usr/src/UPDATING
--- /usr/src/UPDATING.orig	Wed May  2 22:23:04 2001
+++ /usr/src/UPDATING	Fri Jun  1 13:33:31 2001
@@ -229,7 +229,7 @@
 	make buildworld
 	make buildkernel KERNCONF=YOUR_KERNEL_HERE
 	make installkernel KERNCONF=YOUR_KERNEL_HERE
-	reboot	(in single user) [1]
+	shutdown	(into single user) [1]
 	make installworld
 	mergemaster
 	reboot
@@ -239,9 +239,9 @@
 	installworld, however, system components may break and other
 	oddities may happen.  Don't do this on systems that aren't
 	otherwise quiet as unpredictable results may happen.  If in
-	doubt, reboot into single user.  For remote installs, keep
-	a separate kernel around and use a serial console if at all
-	possible.
+	doubt, shutdown(8) into single user.  For remote installs,
+	keep a separate kernel around and use a serial console if at
+	all possible.
 
 What follows are older entries for those people upgrading from earlier
 versions of -stable/-current.
%

correct me if i'm wrong, but shutdown(8) with no arguments should get the
system into single user with all the filesystems still mounted and allow
the 'make installworld' command to run without having to mess with
mounting/remounting filesystems.

the most recent /usr/src/UPDATING (v 1.154) doesn't seem to suffer from
this problem since it doesn't mention single user at all.

my (long-winded) two cents,
brian

-- 
--===-----=======-----------=============-----------------===================
|    rbw aka bjp        |        god's final message to his creation:       |
|    rbw@myplace.org    |        we apologize for the inconvenience.        |
===================-----------------=============-----------=======-----===--

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?20010601135419.E30589>