X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from apollo.thewebhostserver.com (apollomail.thewebhostserver.com [46.23.65.248]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 90F5EDC07FA for ; Tue, 11 Feb 2014 00:41:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=it-offshore.co.uk; s=default; h=Message-Id:Date:Subject:Cc:To:From; bh=RgGQV4o8Rp6MwlinIWmzRDnhe91tCj7tvld7+tXDDWw=; b=CKEpgdILge34JIS7TyNQXm5q0bRXhk9bMG0A9llfR6fUaQBiCvVb8V4MzP1w0FIWLZd3x0zsmcBGfNuL1/OV9098V4R0SN1TA1+dYCu1J1vyo3dZkfWZXQHvwBfw403S; Received: from a95-93-2-88.cpe.netcabo.pt ([95.93.2.88]:60358 helo=alpine.my.domain) by apollo.thewebhostserver.com with esmtpsa (UNKNOWN:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1WD1PV-000mNd-6A; Tue, 11 Feb 2014 00:41:13 +0000 From: IT Offshore To: alpine-devel@lists.alpinelinux.org Cc: IT Offshore Subject: [alpine-devel] [PATCH] Main/linux-grsec - small patch for LUKS initramfs Date: Tue, 11 Feb 2014 00:40:58 +0000 Message-Id: <1392079258-1404-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: git-send-email 1.8.5.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - apollo.thewebhostserver.com X-AntiAbuse: Original Domain - lists.alpinelinux.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - it-offshore.co.uk X-Get-Message-Sender-Via: apollo.thewebhostserver.com: authenticated_id: developer@it-offshore.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 ---