etcupdate warning: "No previous tree to compare against, a sane comparison is not possible."

147 views
Skip to first unread message

Nuno Teixeira

unread,
Jun 22, 2021, 3:36:53 AM6/22/21
to FreeBSD CURRENT
Hello,

Should I be worry about etcupdate warning "No previous tree to compare
against, a sane comparison is not possible." when I recompile and update
current?

I receive same warning when I do a 'etcupdate -p' after installworld too.

Thanks,

Nuno Teixeira

John Baldwin

unread,
Jun 22, 2021, 2:24:12 PM6/22/21
to Nuno Teixeira, FreeBSD CURRENT
Yes, this means etcupdate is not merging any changes to /etc. You should
run 'etcupdate extract' before your next upgrade cycle. You should then
review the output of 'etcupdate diff' to see if there are files in /etc
that need updating. If there are files that you want to update to stock
versions you can use 'etcupdate revert /path/to/file'. Otherwise, you can
use the patch generated by 'etcupdate diff' either as a guide to manually
update files to remove unwanted differences, or as input to patch -R.

--
John Baldwin

Nuno Teixeira

unread,
Jun 24, 2021, 2:37:14 AM6/24/21
to John Baldwin, FreeBSD CURRENT
Hello Jonh!

I did it and it worked fine:

etcupdate extract
etcupdate diff > /tmp/etc.diff
cd /
patch -R < /tmp/etc.diff

Patch can't find diff paths so I run it inside /etc /etc/defalts ... until
all diff is applied.

Now when I run 'etcupdate' I don't get any warning and 'etcupdate diff'
doesn't show diffs.

Hope that warning is solved when next update comes.

Thanks,

Nuno Teixeira
Reply all
Reply to author
Forward
0 new messages