hbsd-update -C confusing output
Created by: esbjerg
A laptop was installed with HBSD-12 in August 2020. It was updated using hbsd-update on September 11.
At October 14. hbsd-update -C was run and showed
hbsd-v1200060-8249d447 [+] Remote version: hbsd-v1200060-8249d447 sha256 2a4d26b0e8511ecb13dfd2c6eb53568ac526fe5bc154cb783fb2e947854150c1
To me this indicated the OS was patched to the latest. I concluded that by seeing the first line matched the Remote version. /var/db/hbsd-update/version did not exist at this point.
After running hbsd-update hbsd-update -C showed
hbsd-v1200060-8249d447 [+] Local version: hbsd-v1200060-8249d447 [+] Remote version: hbsd-v1200060-8249d447 sha256 2a4d26b0e8511ecb13dfd2c6eb53568ac526fe5bc154cb783fb2e947854150c1
So the OS did need to be patched. I guess I could have figured that out by the missing [+] Local version.
However I think it would be easier to understand if hbsd-update always showed the installed OS version. I know the man page says that it will only show the Local version if /var/db/hbsd-update/version exists.
Example of what I think would be nice output.
Installed: hbsd-v1200060-3430f024 Latest: hbsd-v1200060-8249d447