You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
tastytea 775b854cd1
Add info on how to fetch autosign key.
4 years ago
hooks Moved kernel-hook to hooks/kernel-postinst. 4 years ago
init Updated SysVinit script. 5 years ago
.drone.yml Install shellcheck from buster. 4 years ago
.gitignore Added manpage. 5 years ago
LICENSE Typo. 5 years ago Add info on how to fetch autosign key. 4 years ago Added manpage. 5 years ago
hashboot Fixed bugs I introduced while fixing warnings. :-D 4 years ago
hashboot.1.adoc Got rid of table in manpage. 5 years ago

hashboot hashes all files in /boot and the MBR to check them during early boot. It is intended for when you have encrypted the root partition but not the boot partition. The checksums and a backup of the contents of /boot are stored in /var/lib/hashboot by default. If a checksum doesn't match, you have the option to restore the file from backup.

If there is a core- or libreboot BIOS and flashrom installed, hashboot can check the BIOS for modifications too.

We moved our code to but we keep the GitHub-repo as a mirror.



Void Linux

xbps-install -S hashboot

Gentoo Linux

Ebuilds are available via the tastytea repository.

emerge -a sys-apps/hashboot
rc-update add hashboot boot

Arch Linux

Use the package from AUR.


Any distro

The releases on are PGP-signed. The key-ID is F7301ADFC9ED262448C42B64242E5AC4DA587BF9 (242E5AC4DA587BF9). You can fetch it with gpg --locate-key

  • Make hashboot executable
  • Place hashboot anywhere in ${PATH}
  • Install the appropriate init script
  • If applicable, copy hooks/kernel-postinst to /etc/kernel/post{inst,rm}.d/zzz-hashboot (make sure it is called after all other hooks)
  • To generate the manpage, install asciidoc and run


  • First run creates a configuration file. Select the desired checkroutines
  • Run hashboot index to generate checksums and a backup for /boot and MBR
  • Run hashboot check to check /boot and MBR
  • Run hashboot recover to replace corrupted files with the backup


  • You can't use the openrc/sysv init scripts with parallel boot.
  • The systemd and SysVinit init scripts have not been tested in a while, but will probably work.


"THE HUG-WARE LICENSE" (Revision 2):
teldra <> and tastytea <> wrote this.
As long as you retain this notice you can do whatever you want with this.
If we meet some day, and you think this is nice, you can give us a hug.