FreeBSD MakeWorld process

zhaozj2021-02-16  91

I didn't find it to the small devilology. I have to translate myself, and I have some invested in the original version, plus some of my own understanding, please point out

English original file: ///usr/share/doc/en/books/handbook/makeworld.html

Precautions

* Backup system, backup will not be lost

* Subscribe to the corresponding mailing list, I hope that your English is not too bad, put on your question on the corresponding mailing list, describe the problem and the affected system

Stable: freebsd-stable@freebsd.org

Current: freebsd-current@freebsd.org

Upgrade step (assuming you have sync to the code to upgrade)

1. Read the / usr / src / updating, which is made by some things you may need to pay attention to, but do not mean that this is useful than the information obtained from the mailing list, so recommends subscription mailing list.

2. Check the difference between /etc/make.conf, view /etc/make.conf and /etc/default/make.conf, contain some default defaults in /etc/default/make.conf, but most of them The comment is commented, you can consider adding them to /etc/make.conf, but remember that all MAKE commands all of /etc/make.conf work

3. Update / ETC's files, / etc Off-configuration and start scripts, some files are different in different versions, so you need to update, starting from FreeBSD to use the command MergeMaster before compiling. Add -P option. It will check the files that need to be updated in order to run BuildWorld and InstallWorld, the commands are as follows:

# cd /usr/src/usr.sbin/mergemaster

# ./mergemaster.sh -p

4. Enter a single user mode to avoid unsuccessful issues from multi-user system to upgrade, and one method is to compile in multi-user mode, and the order is upgraded under the user.

# shutdown now

Use boot -s to enter single user mode after restart

# fsck -p

# mount -u /

# mount -a -t ufs

# swapon -a

Join the upgrade system use local time without using GMT, you must be entered

# adjgrntz -i

Adjust the time zone and other settings to ensure the normal installation of the system

5. Remove / USR / OBJ

# CD / USR / OBJ

# chflags -r Noschg *

# rm -rf *

6. Compilation

a Save the compilation output, be careful not to exist / tmp, / TMP files may be cleared after restart

# script /var/tmp/mw.out

Script start, output file is /var/tmp/mw.out

# make Target

... Compile, Compile, Compile ...

# exit

Script done, ...

b compilation

# CD / USR / SRC

# Make -j4 -Dnoprofile buildworld # or with noprofile = true in /etc/make.conf

FREEBSD 2.2.5 Make World is divided into make buildworld and make installworld, pay attention to this only make buildworld

C time consumption: PIII500 / 128M RAM will take about 2 hours

7. Compile and install the new kernel

# CD / USR / SRC

# Make Buildkernel

# make installkernel

Compiling the kernel configured by Generic, it is recommended to compile one, so as not to compile the kernel, you cannot use the new kernel to start the new kernel to use the following command.

# /usr/obj/usr/src/usr.sbin/config/config kernelname

8. Restart to single user mode with new kernel

9. Upgrade the system, pay attention to use the -d option to use and make buildworld, and absolutely unable to use the -j option # CD / USR / SRC

# make installworld

If compiled:

# make -Dnoprofile = true buildworld

You should:

# Make -Dnoprofile = true installworld

10. Upgrade the files that are not upgraded by Make World, such as files under / etc, you can use MergeMaster or manual upgrade, see MergeMaster's manual, recommended backup / etc directory before upgrading.

11. Update / dev usually use MergeMaster, will rebuild / dev, or use the command sh makeDev to establish

12. Update / Stand

# cd / usr / src / release / sysinstall

# make all install

13. Restart again

# fastboot

14. End the upgrade, add some programs that cannot be run, can recompile the installation, for example

# cd /usr/src/usr.bin/file

# make all install

转载请注明原文地址:https://www.9cbs.com/read-12583.html

New Post(0)