[alpine-devel] [PATCH] Main/linux-grsec - small patch for LUKS initramfs

IT Offshore
Message ID
Sender timestamp
DKIM signature
Download raw message
Patch: +18 -0
Installing a new kernel does not trigger the regeneration of initramfs &
vmlinuz with cryptsetup included leading to an unbootable system.

If /etc/crypttab contains "luks" initramfs is regenerated. If
people with LVM partitions also have this problem - the if condition
could be changed to check for /dev/mapper in /etc/fstab

Maybe update the wiki for a LUKS installation with my notes at:


This is the only issue I've had running LVM on top of LUKS.
 main/linux-grsec/linux-grsec.post-install | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 main/linux-grsec/linux-grsec.post-install

diff --git a/main/linux-grsec/linux-grsec.post-install b/main/linux-grsec/linux-grsec.post-install
new file mode 100644
index 0000000..5cb0eae
--- /dev/null
+++ b/main/linux-grsec/linux-grsec.post-install
@@ -0,0 +1,18 @@
+print_green() {
+        local prompt="${GREEN}${STRONG}$1 ${NORMAL}"
+        printf "${prompt} %s\n"
+print_green "Rebuilding Initramfs for LUKS / Cryptsetup"
+if grep luks /etc/crypttab 1>/dev/null; then
+	apk fix linux-grsec
+exit 0

Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org