Hi folks,
Once upon a time I wrote a small init script that computes a checksum
of the MBR and the gap behind it where GRUB2 lives, and also of the
boot partition, and compares them to already saved values.
Everytime I do a Kernel or GRUB update, I also make an image and save
the checksum. Up until grub-2.02 these values did not change if I would
not touch anything and always boot the default entry.
But recently, the post-MBR gap check started to fail every time.
A diff of the hexdump of the first 2MB of the disk showed some small
discrepancies (at around 0x00100420 and 0x00100570). Before rebooting,
they did not exist. After each boot, there are some small changes.
So my question is:
- Does grub keep some kind of counter or status information when
booting? This would calm me somehow.
- Or does this mean there is something strange going on on my machine?