6644 MBOOT_SCAN_SIZE in usr/src/cmd/boot/common/mboot_extra.h is wrong

Review Request #154 - Created Feb. 10, 2016 and submitted

Information
Toomas Soome
illumos-gate
6644
Reviewers
general
6644 MBOOT_SCAN_SIZE in usr/src/cmd/boot/common/mboot_extra.h is wrong

as MBOOT_SCAN_SIZE is used for embedded versioning and installgrub is only reading version and not writing it, the following test is enough:

reading existing versioned bootblock with new binary and then with old
root@beastie:/code/illumos-gate/usr/src/cmd/boot/installgrub# ./installgrub -i /dev/rdsk/c3t0d0s0
Solaris fdisk partition is inactive.
Extended version string: 1.1:20160207T231516Z
MD5 hash: 1f887eccc0c3a2fd51a5154d6767141b
root@beastie:/code/illumos-gate/usr/src/cmd/boot/installgrub# /usr/sbin/installgrub -i /dev/rdsk/c3t0d0s0
Solaris fdisk partition is inactive.
Extended version string: 1.1:20160207T231516Z
MD5 hash: 1f887eccc0c3a2fd51a5154d6767141b

I have actually tested loader project installboot command as well and it does function as expected.

Josef Sipek
Alexander Pyhalov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...