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:
http://bugs.alpinelinux.org/issues/2684
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 @@
+#!/bin/sh++NORMAL="\033[1;0m"+STRONG="\033[1;1m"+GREEN="\033[1;32m"++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+fi++exit 0+
--
1.8.5.4
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---