I installed MBR on entire disk, and have these commands:
I'd like to do something before those as a check to see if either need updating.
On EFI I have:
loaders-update looks like it does a compare with something in
Not quite sure what it's checking, but I didn't see anything obvious at root /dev that matched in filesize to mbr or boot. I think I'm looking for something to see if what's on ada0/ada0s1 is the same as /boot/mbr|boot, but I'm not sure how to check something written to low-level disk vs a file on filesystem like EFI.
Code:
gpart bootcode -b '/boot/mbr' 'ada0'
Code:
gpart bootcode -b '/boot/boot' 'ada0s1'
I'd like to do something before those as a check to see if either need updating.
On EFI I have:
Code:
rsync -a --no-times --checksum '/boot/loader.efi' '/boot/efi/EFI/freebsd/loader.efi'
rsync -a --no-times --checksum '/boot/loader.efi' '/boot/efi/EFI/boot/bootx64.efi'
loaders-update looks like it does a compare with something in
/dev: https://github.com/Emrion/uploaders/blob/main/loaders-update#L411Not quite sure what it's checking, but I didn't see anything obvious at root /dev that matched in filesize to mbr or boot. I think I'm looking for something to see if what's on ada0/ada0s1 is the same as /boot/mbr|boot, but I'm not sure how to check something written to low-level disk vs a file on filesystem like EFI.