uname -v
FreeBSD 13.0-RELEASE #0 releng/13.0-ea31abc26: Sun May 16 14:57:18 CEST 2021
I have read etcupdate() carefully. I understand there are different modes. Because I never used it before I have done a bootstarp, but not like it is written in 24.5.6.1. Merging Configuration Files with etcupdate(8) with "etcupdate bootstrap" but with
etcupdate extract
like it is written in the manual. I done this after make installworld
, because before I hasn't known. It has created the content of the directory /var/log/etcupdate/current After learning the manual I do today: script etcupdate.log etcupdate
the output after some time waiting is that:
Code:
Script started on Tue Jun 1 17:21:59 2021
Command: etcupdate
Command exit status: 0
Script done on Tue Jun 1 17:22:51 2021
Code:
For each file that is updated a line will be output with a leading character
to indicate the action taken. The possible actions follow:
A Added
C Conflict
D Deleted
M Merged
U Updated
Also it was written:
Code:
Default Mode
The default mode merges changes from the source tree to the destination
directory. First, it updates the "current" and "previous" trees. Next,
it compares the two trees merging changes into the destination directory.
Finally, it displays warnings for any conditions it could not handle automatically....
The "best" are in the new log file (I formate it a bit):
Code:
>>> update command: rerun= tarball= preworld=
rmdir: /var/db/etcupdate/conflicts: No such file or directory
>>> Building tree at /var/db/etcupdate/current with make -DNO_FILEMON
cd /usr/src/etc; MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE=native
CC="clang -target x86_64-unknown-freebsd13.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin"
CXX="clang++ -target x86_64-unknown-freebsd13.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP="clang-cpp -target x86_64-unknown-freebsd13.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld" LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" STRIPBIN="strip" PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin make INSTALL="install -N /usr/src/etc" MTREE_CMD="mtree -N /usr/src/etc" METALOG= distrib-dirs
for file in /usr/share/doc/usd/10.exref
/usr/share/doc/usd/11.edit
/usr/share/doc/usd/12.vi
/usr/share/doc/usd/13.viref; do
if [ -f /var/db/etcupdate/current/${file} ]; then
rm -f /var/db/etcupdate/current/${file}; fi;
done
mtree -N /usr/src/etc -deU -i -f /usr/src/etc/mtree/BSD.root.dist -p /var/db/etcupdate/current/
./bin missing (created)
./boot missing (created)
./boot/defaults missing (created)
./boot/dtb missing (created)
./boot/dtb/allwinner missing (created)
./boot/dtb/overlays missing (created)
./boot/dtb/rockchip missing (created)
./boot/efi missing (created)
./boot/firmware missing (created)
./boot/loader.conf.d missing (created)
./boot/lua missing (created)
./boot/kernel missing (created)
./boot/modules missing (created)
./boot/uboot missing (created)
./boot/zfs missing (created)
etc..
Code:
#ll /usr/share/doc/usd/10.exref
gnuls: cannot access '/usr/share/doc/usd/10.exref': No such file or directory
#ll /usr/share/doc/usd/11.edit
gnuls: cannot access '/usr/share/doc/usd/11.edit': No such file or directory
#ll /usr/share/doc/usd/12.vi
gnuls: cannot access '/usr/share/doc/usd/12.vi': No such file or directory
#ll /usr/share/doc/usd/13.viref
gnuls: cannot access '/usr/share/doc/usd/13.viref': No such file or directory
ll /var/db/etcupdate/current/boot
-r--r--r-- 1 root wheel 754 Juni 1 17:22 device.hints
ll /var/db/etcupdate/old/boot
-r--r--r-- 1 root wheel 754 Mai 29 20:48 device.hints
ll /var/db/etcupdate/old/conflicts
--empty - I can not find the created files as it is written in the /var/db/etcupdate/log file.
And there are files named added.files both.files new.files old.files removed.files that are not explained in the manual. From the names of the files I can figured out for what they stand for, but I don't know what to do with them.
Can anybody please explain me, how to use this Updatescript /usr/sbin/etcupdate ???