From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UMoXN+TnfmM9ugAAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 04:41:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id aDw0NuTnfmObrAAAG6o9tA (envelope-from ) for ; Thu, 24 Nov 2022 04:41:24 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B96DA40CE for ; Thu, 24 Nov 2022 04:41:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy36m-0001xR-Qf; Wed, 23 Nov 2022 22:41:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy36l-0001xI-T9 for bug-guix@gnu.org; Wed, 23 Nov 2022 22:41:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy36k-0000SV-Ue for bug-guix@gnu.org; Wed, 23 Nov 2022 22:41:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oy36k-0005tN-Dy for bug-guix@gnu.org; Wed, 23 Nov 2022 22:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59529: fail to re-prompt after mistyped disk encryption passphrase Resent-From: =?UTF-8?Q?Fran=C3=A7ois-Ren=C3=A9?= Rideau Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 24 Nov 2022 03:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59529 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59529@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166926120922568 (code B ref -1); Thu, 24 Nov 2022 03:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Nov 2022 03:40:09 +0000 Received: from localhost ([127.0.0.1]:56822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oy35s-0005rw-OZ for submit@debbugs.gnu.org; Wed, 23 Nov 2022 22:40:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:42982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oy35n-0005ri-Th for submit@debbugs.gnu.org; Wed, 23 Nov 2022 22:40:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oy35n-0001tA-P2 for bug-guix@gnu.org; Wed, 23 Nov 2022 22:40:03 -0500 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy35X-0007Ba-Ht for bug-guix@gnu.org; Wed, 23 Nov 2022 22:40:02 -0500 Received: by mail-io1-xd30.google.com with SMTP id p184so463406iof.11 for ; Wed, 23 Nov 2022 19:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mukn-io.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3y2+7zqJE8kWHBgycSsOxmwkZ1zf0GulHv6uPEU2QcA=; b=Qabpvgy4dHdtsLmLCScPiccW9RrqGuabOUi3e8fEKzy1O0nd5Xt5L+MGZvTTaH4nSr 9KX7SzJGuXJOoyBcdhZ48lUO2qYuezrPEJxiLdHOiBguBXLAAw2U3dtW2JBPg1NAkW6H uQTg4iW+GPXt1v6L3O4RMZlr18deIGFTs4EQoV5uFvr3zBYU5UXtdT0FdsLWX1ZPaDOt 6Evk9x2LTOsbT4Np3DKiysMnjFOqNgINruR7/HJvnHf+K8rv+0eLAMKsr0m/H3qBJDvk Ig1P9DvmXkPcnowdBBFGfl57w0C7kHrInd7VuCiiK35kgw7GRoZK1t8Mrnz8wCPRQ9r2 zCQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3y2+7zqJE8kWHBgycSsOxmwkZ1zf0GulHv6uPEU2QcA=; b=1mNNNcvNPDZOHkTFgq2eCiTmtm+9pwtVwdeVPek+wsHaAxZ1Ai0F7pLSTPCwroXfgW TFpBYGwBc2xyxUsWgCmsab4ZW5epcborPKtCWFX6nkKLZTkTKe43mcSZ127cfEB+Pv88 QH8jM8wRsaGD5X4g6/FNG14RPQxnw9HfF8t0Ddm89TklDkVbm5upRLa4JoKdY1NDhykE gCzgt+TuI6eH6mmlx3NEyouC7WZSCWtyMDJV7Xb0nk+9OQWRH9vENqb8QxRdysKHEnTz cKXn58sTtJoJwWowqThXYtsiWxWh5GY1jLnsRR8QCxFVL6SnsM/TuE/k1XqkNuWJZNPI +dMA== X-Gm-Message-State: ANoB5pkRQBMIP0bq1SBClkconcLy69JWny9sJoa1e/9XdOZ56gr30yml ztBv16DR43HNmzvt84yhgmAuUzZPZVCNlLA9w7vXbV9CZ7H7fQ== X-Google-Smtp-Source: AA0mqf5bS0O9dTpdfCvC9eQE9D7vbhCoZb8Ub8mDkZyEy0CUcaGK/VX26fDTtk2e9Fd4gkB+TdL+/vYDNsAI88oACZA= X-Received: by 2002:a02:c946:0:b0:375:b0a3:bdf4 with SMTP id u6-20020a02c946000000b00375b0a3bdf4mr14486560jao.107.1669261185083; Wed, 23 Nov 2022 19:39:45 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Fran=C3=A7ois-Ren=C3=A9?= Rideau Date: Wed, 23 Nov 2022 22:39:34 -0500 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: softfail client-ip=2607:f8b0:4864:20::d30; envelope-from=fare@mukn.io; helo=mail-io1-xd30.google.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669261284; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3y2+7zqJE8kWHBgycSsOxmwkZ1zf0GulHv6uPEU2QcA=; b=Zj5X3v4mhsjbCMYljBa3IYJteR/C2jGYKXthprtCjq7F3yq5DHEHLQWX1+YhyUVxb+JvmZ /u2a3lgxEB3aag7UfxOURxjpHi5cqUIKcf0IHE8TrA3XMxpLs6gsdlJaqXRZtL2tG37a+y e79Df4BPIFum/jI/3UezYCLAnesxLrXqsH/O734xIFmemdy4rpwvJQlRU4GMS49FgUEimq 2sd6vIv68uUs7bPXMFQU5th4ba8mcbdxfZL/FaoQn1kjq3zIOVu4rTDmplwteYiXZp347s B7QrIpOS2tbw2cVgMFGCfd100aZHhrZ8AK+RhpcLB+j7ToiYiyBzmJbA9/aDUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669261284; a=rsa-sha256; cv=none; b=ddpReIJKSVMLn7mPIVZxXgDBLPuHa18eyX++/q7g6qdV4ZeoM30c5W6WpBOiGgtwGmPNAV EbSKUMcmMjO93OI6g/P0DbSZsiEvcwDF5piO8IwgB74DERtveOMJ6574OVHf4TWtVfkw1Y uPzGLYC5qTycHWWAHZtkkZCLCe9o0/CTcAKpJ5rgTUU4OcPnZgASa88uHEzfJIDzytUkPE byCQVKCIj5CX9NWiy01gKmRi+LF+apr4m4SOE3qO45CMR/4gAKYFdKojTF6DASdF23s2tz 4WnGtXTZRY+QPOS8Xuj5jqQDcgrjHjoU6eRgbzlhPYfqIBYmhpagR7ugP8ivWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mukn-io.20210112.gappssmtp.com header.s=20210112 header.b=Qabpvgy4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mukn.io (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mukn-io.20210112.gappssmtp.com header.s=20210112 header.b=Qabpvgy4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mukn.io (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B96DA40CE X-Spam-Score: 5.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: KwUjIlVK/+AK When booting into an encrypted disk, guix correctly prompts for an encryption passphrase, but should the passphrase be somehow mistyped (which happens more often than not for an appropriately long passphrase on some devices' bad keyboards), guix drops to the scheme repl, without any obvious way to usefully restart the process. The only thing left to do is then to reboot and go through the lengthy BIOS cycle again. Could guix, like nix, offer the user many attempts to type the passphrase? Maybe after 3 to 10 failed attempts, or an attempt using an empty string, then dropping to the debugger makes sense=E2=80=94but even then, co= uld some message give a hint about how to do anything useful at the repl, like restarting for instance? NB: Using guix 437718442ca758a3857702cecfe5c80aa5df272b. =E2=80=94=E2=99=AF=C6=92 =E2=80=A2 Fran=C3=A7ois-Ren=C3=A9 Rideau =E2=80=A2= Co-Founder and President, MuKn.io =E2=80=9CIf instead of teaching other people what government should be and should do, you'd teach yourself what government actually is and does do, you'd be a libertarian.=E2=80=9D