diff --git a/INSTALL b/INSTALL index b539ab1..619a8a2 100644 --- a/INSTALL +++ b/INSTALL @@ -1,4 +1,5 @@ * Make sure you have sha*sum or md5sum installed * Make hashboot.sh executable * Place hashboot.sh anywhere in $PATH -* Install the appropriate init script \ No newline at end of file +* Install the appropriate init script +* If applicable, copy kernel-hooks.debian to /etc/kernel/post{inst,rm}.d/hashboot and make sure it is called after initramfs-tools diff --git a/TODO b/TODO index 1f45152..9b6bba6 100644 --- a/TODO +++ b/TODO @@ -3,4 +3,3 @@ * Supress dd output while staying Debian 7 compatible * Find out if we are raspbian compatible (first partition starts at 4MiB) * Debian and Ubuntu repositories -* /etc/kernel/postinst.d hook (Debian und Ubuntu) diff --git a/kernel-hooks.debian b/kernel-hooks.debian new file mode 100644 index 0000000..b9c916e --- /dev/null +++ b/kernel-hooks.debian @@ -0,0 +1,4 @@ +#!/bin/sh +# Generate checksums of MBR and /boot after each kernel update + +hashboot.sh index