Hello.
Sometimes,when I attempt to upgrade FreeBSD from source,I see that the differences aren't merged and I get the error "No previous tree to compare against, a sane comparison is not possible" OR I get no output from etcupdate -p and -B. I never understood the reason. But I think that's not a good sign. This is the procedure that I follow if I want to upgrade 14.0-RELEASE to 14.1-RELEASE :
In any case,I've been able to upgrade to 14.1 :
But I suspect that the system hasn't been upgraded properly and it could have problems in the future. I read that the command :
could help,but I don't understand how. I made a backup of the old 14.0-p6 system,so I have the content of /usr/src saved in a separate directory. Maybe to have the sources of 14.0 and 14.1 can help,in some way,to extract and to merge the differences ?
I don't want to restore the backup of the 14.0 and try again to upgrade it because in the meantime I've personalized the 14.1.
Sometimes,when I attempt to upgrade FreeBSD from source,I see that the differences aren't merged and I get the error "No previous tree to compare against, a sane comparison is not possible" OR I get no output from etcupdate -p and -B. I never understood the reason. But I think that's not a good sign. This is the procedure that I follow if I want to upgrade 14.0-RELEASE to 14.1-RELEASE :
Code:
# zfs rename zroot3/usr/src zroot3/usr/src-old
# zfs create zroot3/usr/src
# zfs set mountpoint=/usr/src zroot3/usr/src
# git clone --depth 1 https://git.FreeBSD.org/src.git /usr/src
# cd /usr/src
# git checkout releng/14.1
# make -j8 buildworld
# make -j8 kernel
# shutdown -r now
# cd /usr/src
# etcupdate -p
nothing
# make installworld
.....
--------------------------------------------------------------
>>> Installing everything completed on Fri Jul 19 03:35:58 CEST 2024
--------------------------------------------------------------
67,27 real 34,87 user 18,78 sys
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Skipping untrusted certificate /usr/share/certs/trusted/Cybertrust_Global_Root.pem (/etc/ssl/untrusted/76cb8f92.0)
Skipping untrusted certificate /usr/share/certs/trusted/DST_Root_CA_X3.pem (/etc/ssl/untrusted/2e5ac55d.0)
Skipping untrusted certificate /usr/share/certs/trusted/E-Tugra_Certification_Authority.pem (/etc/ssl/untrusted/5273a94c.0)
Skipping untrusted certificate /usr/share/certs/trusted/E-Tugra_Global_Root_CA_ECC_v3.pem (/etc/ssl/untrusted/5a7722fb.0)
Skipping untrusted certificate /usr/share/certs/trusted/E-Tugra_Global_Root_CA_RSA_v3.pem (/etc/ssl/untrusted/66445960.0)
Skipping untrusted certificate /usr/share/certs/trusted/GlobalSign_Root_CA_-_R2.pem (/etc/ssl/untrusted/4a6481c9.0)
Skipping untrusted certificate /usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem (/etc/ssl/untrusted/1636090b.0)
Skipping untrusted certificate /usr/share/certs/trusted/Hongkong_Post_Root_CA_1.pem (/etc/ssl/untrusted/3e45d192.0)
Skipping untrusted certificate /usr/share/certs/trusted/Network_Solutions_Certificate_Authority.pem (/etc/ssl/untrusted/4304c5e5.0)
Skipping untrusted certificate /usr/share/certs/trusted/Security_Communication_Root_CA.pem (/etc/ssl/untrusted/f3377b1b.0)
Skipping untrusted certificate /usr/share/certs/trusted/Staat_der_Nederlanden_EV_Root_CA.pem (/etc/ssl/untrusted/03179a64.0)
Skipping untrusted certificate /usr/share/certs/trusted/TrustCor_ECA-1.pem (/etc/ssl/untrusted/7aaf71c0.0)
Skipping untrusted certificate /usr/share/certs/trusted/TrustCor_RootCert_CA-1.pem (/etc/ssl/untrusted/5d3033c5.0)
Skipping untrusted certificate /usr/share/certs/trusted/TrustCor_RootCert_CA-2.pem (/etc/ssl/untrusted/3e44d2f7.0)
Scanning /usr/local/share/certs for certificates...
[root@marietto /usr/src]==> etcupdate -B
nothing
# shutdown -r now
# cd /usr/src
# etcupdate resolve
nothing
In any case,I've been able to upgrade to 14.1 :
Code:
[root@marietto /usr/src]==> uname -a
FreeBSD marietto 14.1-RELEASE-p2 FreeBSD 14.1-RELEASE-p2 releng/14.1-n267685-dcdea9e8623e GENERIC amd64
But I suspect that the system hasn't been upgraded properly and it could have problems in the future. I read that the command :
Code:
# etcupdate extract
could help,but I don't understand how. I made a backup of the old 14.0-p6 system,so I have the content of /usr/src saved in a separate directory. Maybe to have the sources of 14.0 and 14.1 can help,in some way,to extract and to merge the differences ?
I don't want to restore the backup of the 14.0 and try again to upgrade it because in the meantime I've personalized the 14.1.