From 4b0bf02292bfea6e7bb5717df0baa1f63302bf2d Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Wed, 25 Dec 2002 19:37:50 +0000 Subject: [PATCH] - Fix some tags. - Add hostid tags where needed. - Rework the kernel building part. - Fix a filename. - Various punctuation fixes. --- .../books/handbook/cutting-edge/chapter.sgml | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml b/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml index e489f81a80..e2310785c2 100644 --- a/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/cutting-edge/chapter.sgml @@ -884,7 +884,7 @@ Script done, … The general format of the command line you will type is as follows: - &prompt.root; make -VARIABLE target + &prompt.root; make -x -DVARIABLE target In this example, is an option that you would pass to &man.make.1;. See the @@ -948,12 +948,12 @@ Script done, … Secondly, it allows you to use NFS mounts to upgrade multiple machines on your network. If you have three machines, - A, B and C that you want to upgrade, run make + A, B and C that you want to upgrade, run make buildworld and make installworld on - A. B and C should then NFS mount /usr/src - and /usr/obj from A, and you can then run + A. B and C should then NFS mount /usr/src + and /usr/obj from A, and you can then run make installworld to install the results of - the build on B and C. + the build on B and C. Although the world target still exists, you are strongly encouraged not to use it. @@ -1031,12 +1031,18 @@ Script done, … buildworld. If you want to build a custom kernel, and already have a configuration - file, just append KERNCONF='MYKERNEL' to any of the - following options: + file, just use KERNCONF=MYKERNEL + like this: &prompt.root; cd /usr/src -&prompt.root; make buildkernel -&prompt.root; make installkernel +&prompt.root; make buildkernel KERNCONF=MYKERNEL +&prompt.root; make installkernel KERNCONF=MYKERNEL + + In FreeBSD 4.2 and older you must replace + KERNCONF= with KERNEL=. + 4.2-STABLE that was fetched after Feb 2nd, 2001 does + recognize KERNCONF=. + Note that if you have raised kern.securelevel above 1 and you have set either the @@ -1242,17 +1248,17 @@ Script done, … time of writing the only files like this are shell startup files in /var/tmp/root/ and /var/tmp/root/root/, although there may be others - (depending on when you are reading this. Make sure you use - + (depending on when you are reading this). Make sure you use + ls -a to catch them. The simplest way to do this is to use &man.diff.1; to compare the - two files. + two files: &prompt.root; diff /etc/shells /var/tmp/root/etc/shells This will show you the differences between your /etc/shells file and the new - /etc/shells file. Use these to decide whether to + /var/tmp/root/etc/shells file. Use these to decide whether to merge in changes that you have made or whether to copy over your old file. @@ -1275,7 +1281,7 @@ Script done, … /etc and the other directories, give the target directory a name based on the current date. If you were doing this on the 14th of February 1998 you could do the - following. + following: &prompt.root; mkdir /var/tmp/root-19980214 &prompt.root; cd /usr/src/etc @@ -1303,7 +1309,7 @@ Script done, … You can now see the differences that have been made in the intervening week using &man.diff.1; to create a recursive diff - between the two directories. + between the two directories: &prompt.root; cd /var/tmp &prompt.root; diff -r root-19980214 root-19980221 @@ -1318,7 +1324,7 @@ Script done, … You can now remove the older of the two - /var/tmp/root-* directories. + /var/tmp/root-* directories: &prompt.root; rm -rf /var/tmp/root-19980214 @@ -1330,7 +1336,7 @@ Script done, … You can use &man.date.1; to automate the generation of the - directory names. + directory names: &prompt.root; mkdir /var/tmp/root-`date "+%Y%m%d"`