git: 313c8a75f1 - main - Add warning about migrating from mergemaster to etcupdate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Nov 2022 21:37:48 UTC
The branch main has been updated by carlavilla: URL: https://cgit.FreeBSD.org/doc/commit/?id=313c8a75f1c13995dfa1dee6fe6225c32f564c5a commit 313c8a75f1c13995dfa1dee6fe6225c32f564c5a Author: yetoohappy <yetoohappy@gmail.com> AuthorDate: 2022-11-06 21:36:36 +0000 Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> CommitDate: 2022-11-06 21:36:36 +0000 Add warning about migrating from mergemaster to etcupdate PR: 260253 Reviewed by: pauamma@ --- .../content/en/books/handbook/cutting-edge/_index.adoc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/documentation/content/en/books/handbook/cutting-edge/_index.adoc b/documentation/content/en/books/handbook/cutting-edge/_index.adoc index 7ad3692bc1..8e5bed211b 100644 --- a/documentation/content/en/books/handbook/cutting-edge/_index.adoc +++ b/documentation/content/en/books/handbook/cutting-edge/_index.adoc @@ -666,6 +666,22 @@ The build process takes longer to update a system than just installing binary up This is a quick reference for the typical steps used to update FreeBSD by building from source. Later sections describe the process in more detail. +[WARNING] +==== +When switching from man:mergemaster[8] to man:etcupdate[8], the first run might merge changes incorrectly generating spurious onflicts. +To prevent this, perform the following steps *before* updating sources and building the new world: + +[source,shell] +.... +# etcupdate extract <.> +# etcupdate diff <.> +.... + +<.> Bootstrap the database of stock [.filename]#/etc# files; for more information see man:etcupdate[8]. + +<.> Check the diff after bootstrapping. Trim any local changes that are no longer needed to reduce the chance of conflicts in future updates. +==== + [.procedure] ==== * Update and Build @@ -967,7 +983,7 @@ To prevent this, perform the following steps *before* updating sources and build # etcupdate diff <.> .... -<.> Bootstrap the database of stock [.filename]#/etc# files, for more information see man:etcupdate[8]. +<.> Bootstrap the database of stock [.filename]#/etc# files; for more information see man:etcupdate[8]. <.> Check the diff after bootstrapping. Trim any local changes that are no longer needed to reduce the chance of conflicts in future updates. ====