From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Zuxvc-0002ju-Hn for mharc-grub-devel@gnu.org; Sat, 07 Nov 2015 02:28:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zuxva-0002jb-Ol for grub-devel@gnu.org; Sat, 07 Nov 2015 02:28:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuxvV-0002Ah-Me for grub-devel@gnu.org; Sat, 07 Nov 2015 02:28:46 -0500 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:34761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuxvV-0002Ac-Fa; Sat, 07 Nov 2015 02:28:41 -0500 Received: by lfgh9 with SMTP id h9so80714882lfg.1; Fri, 06 Nov 2015 23:28:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=aW072GQKOPh5d4CqHmjDiCPZiZtAjffGftfNeazwOss=; b=Mj6ykBfUnsR+cmRxSTwdxKmHmBeu1aA59x7W3loijXPfT0gYwwP/qviSZo3ruau/Ls 4Uk0B4m7m228ivjzINWUXMg+5lXHEudj3xc3/58O+vaWCn546PZFnxVHH7syEhTS6ybm q41Nv4n/JBk8VaKawc6Jx/fWUOqIfGFuxAswaF37u+ZP+dgpjx6tZogivPdtyyb+cKmJ obp9myl11CnRn8Z1icKzrItdyXyIgym5hP6m68e/bZ6kI8Cnbo8buO4JPgi1/jXsXzFE W82ykLWA8+60HmDeh6ioQ8qi4Xv/MXsOYN2KQ2Lh9gACC6QXSO9+hzjuTnEMaacBorM0 vD+Q== X-Received: by 10.25.32.140 with SMTP id g134mr5406329lfg.26.1446881320763; Fri, 06 Nov 2015 23:28:40 -0800 (PST) Received: from [192.168.1.41] (ppp91-76-25-247.pppoe.mtu-net.ru. [91.76.25.247]) by smtp.gmail.com with ESMTPSA id f198sm643218lff.9.2015.11.06.23.28.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2015 23:28:39 -0800 (PST) Subject: Re: cryptodisk enabled returns to rescue prompt To: westlake , bug-grub@gnu.org, grub-devel@gnu.org References: <563D7A68.1030409@videotron.ca> From: Andrei Borzenkov Message-ID: <563DA826.9080104@gmail.com> Date: Sat, 7 Nov 2015 10:28:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <563D7A68.1030409@videotron.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::234 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2015 07:28:47 -0000 07.11.2015 07:13, westlake пишет: > enabling GRUB_ENABLE_CRYPTODISK=y has crypt prompting only once on > bootup, is it possible to have an option with grub-install or another > option here with GRUB_EMABLE_CRYPTODISK so that the keypass prompts in a > loop? (a wrong passphrase typed brings the user to a grub rescue shell > and has to issue ctl-alt-delete which is imho not very presentable to You need to just do cryptomount -u xxxxxxxxxxx normal I am not convinced that being stuck in password entry loop is better. May be a command that retries to execute embedded config and enter normal may be useful. > staff) -- I understand this is all in mbr bootcode so I suppose the best > place to implement this would be when first generating the code in order > to keep it small. > > it would be imho really great if this can be implemented There was suggested patch that allowed multiple password entry attempts for LUKS. It was a part of patch series that implemented other things. May be it could be reconsidered if rebased to not depend on other changes.