NetBSD-Docs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Chapter 35. Updating an existing system from sources
Hi all,
I have had success in my first NetBSD base system and kernel compiling
for mi RaspberryPi4. Very happy with that. NetBSD Guide is a great
document indeed. I only have found a few minor things that I want to
mention, just in case it can be improved or if it is my lack of
understanding.
In Chapter 32. Obtaining the sources, /usr/src and /usr/xsrc are
created and changed their ownership to the normal username in order to
be able to do the compilling action without root permission:
# mkdir /usr/src
# chown <carlo> /usr/src
If you want the sources to the X Window System, you should prepare
/usr/xsrc as well:
# mkdir /usr/xsrc
# chown <carlo> /usr/xsrc
But once you start building the system:
35.1.1. Building a new userland
The first step is to build the userland:
$ cd /usr/src
$ ./build.sh -O ../obj -T ../tools -U distribution
it complains because /usr/obj and /usr/tools directories could not be
created (or did not exist, I do not remember exactly).
So I created them manually and chowned them to my username. I think
that The Guide does not mention that.
Another "issue":
35.1.4. Updating the system configuration files
Updating your system's configuration files is done in two steps.
First, postinstall(8) is used to check and fix things that can be
easily automated. Afterwards, etcupdate(8) is used to merge the
remaining configuration file changes.
# /usr/sbin/postinstall -s /usr/src check
# /usr/sbin/postinstall -s /usr/src fix
# /usr/sbin/etcupdate -s /usr/src
but when we go to the 35.1.5. Summary, it says only:
7. Update the system and configuration files;:
# /usr/sbin/etcupdate -s /usr/src
not mentioning the postinstall check and fix phase.
Thanks so much.
Ramiro.
Home |
Main Index |
Thread Index |
Old Index