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 53C39DC02AF for ; Tue, 11 Feb 2014 22:44:01 +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=xF+3Q8MXMUIpsIYJHo7MgISAh++Gf+XO33Z7Qo/NhxA=; b=tcofDlDBR0eHVpM+YOgxnY29FJC4lh0m2dthonLsYmKxJxRb1UuuBjOc2GaY0h8DsOW8HnwBqQGqUWLXLRoBIV6EZByvJLKpK8+mXZVPFP5BTf0Afs9/iaQTol2fskTn; Received: from a95-93-2-88.cpe.netcabo.pt ([95.93.2.88]:50118 helo=alpine.my.domain) by apollo.thewebhostserver.com with esmtpsa (UNKNOWN:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1WDM3W-000yuG-T2; Tue, 11 Feb 2014 22:43:55 +0000 From: IT Offshore To: alpine-devel@lists.alpinelinux.org Cc: IT Offshore Subject: [alpine-devel] [PATCH] Main/mkinitfs - small Patch for LUKS / Cryptsetup Date: Tue, 11 Feb 2014 22:43:42 +0000 Message-Id: <1392158622-21396-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: small patch to run "apk fix linux-grsec" if /etc/crypttab contains "luks" This will prevent unbootable encrypted systems after kernel upgrades. --- main/mkinitfs/mkinitfs.trigger | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/main/mkinitfs/mkinitfs.trigger b/main/mkinitfs/mkinitfs.trigger index cedf363..644c534 100644 --- a/main/mkinitfs/mkinitfs.trigger +++ b/main/mkinitfs/mkinitfs.trigger @@ -1,5 +1,14 @@ #!/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" +} + for i in "$@"; do # get last element in path flavor=${i##*/} @@ -29,5 +38,11 @@ for i in /boot/initramfs-[0-9]*; do fi done +# rebuild initramfs for Cryptsetup / LUKS +if grep luks /etc/crypttab 1>/dev/null; then + print_green "Rebuilding Initramfs for LVM / Cryptsetup" + apk fix linux-grsec +fi + sync exit 0 -- 1.8.5.4 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---