Bug 253108 - freebsd-update calling non-existing "merge" command
Summary: freebsd-update calling non-existing "merge" command
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2021-01-30 22:01 UTC by db_freebsd
Modified: 2021-01-30 22:01 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description db_freebsd 2021-01-30 22:01:00 UTC
In the process to upgrade from 12.1-RELEASE-p13 to 12.2-RELEASE, the freebsd-update command fails during the configuration merge phase. The merged files proposed are all empty.

After looking at the code, it appears that the script calls the "merge" command, which doesn't exist on my system.

I've manually change the script to use diff3, which solved the issue (inspired from the latest version of freebsd-update on github using diff3).

ls on freebsd-update:
-r-xr-xr-x  1 root  wheel  -   90K Oct 12  2019 /usr/sbin/freebsd-update*

file version extracted from first lines:
# $FreeBSD: releng/11.3/usr.sbin/freebsd-update/freebsd-update.sh 345802 2019-04-02 13:58:31Z emaste $