From d1391f653fcd5b8fa88350305fe84ac49f767cde Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 3 Oct 2015 15:15:29 +0200 Subject: [PATCH] Kernel hooks for Debian and Debian-based systems --- INSTALL | 3 ++- TODO | 1 - kernel-hooks.debian | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 kernel-hooks.debian 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