LUKS encrypted systems - initramfs / vmlinuz do not regenerate
Installing a new kernel does not trigger the regeneration of initramfs / vmlinuz with cryptsetup included leading to an unbootable system.
+For a brand new installation from the CD this can be fixed before
rebooting with:
+
cd $MNT mount --bind /dev dev mount -t devpts devpts dev/pts mount -t tmpfs tmpfs dev/shm mount -t proc proc proc mount -t sysfs sysfs sys
apk fix --root $MNT linux-grsec
From a running system:
apk fix linux-grsec
A small post-install script for linux-grsec could fix this:
#! /bin/sh echo "rebuilding initramfs for LUKS / Cryptsetup" if grep luks /etc/crypttab 1>/dev/null; then apk fix linux-grsec fi
(from redmine: issue id 2684, created on 2014-02-11, closed on 2014-04-15)