From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oDr7EIkST2KLSgAAgWs5BA (envelope-from ) for ; Thu, 07 Apr 2022 18:34:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KG1wDokST2KjowAA9RJhRA (envelope-from ) for ; Thu, 07 Apr 2022 18:34:17 +0200 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 A10033CFBC for ; Thu, 7 Apr 2022 18:34:16 +0200 (CEST) Received: from localhost ([::1]:55472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncV5L-0001nF-TY for larch@yhetil.org; Thu, 07 Apr 2022 12:34:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncV58-0001jS-Ig for bug-guix@gnu.org; Thu, 07 Apr 2022 12:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncV58-0006fd-71 for bug-guix@gnu.org; Thu, 07 Apr 2022 12:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ncV57-0002Kb-Su for bug-guix@gnu.org; Thu, 07 Apr 2022 12:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54770: Non-root LUKS devices unusable after Shepherd upgrade Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Apr 2022 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54770 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54770@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16493491998895 (code B ref -1); Thu, 07 Apr 2022 16:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Apr 2022 16:33:19 +0000 Received: from localhost ([127.0.0.1]:33223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncV4Q-0002JP-UP for submit@debbugs.gnu.org; Thu, 07 Apr 2022 12:33:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:42164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ncV4P-0002JI-J4 for submit@debbugs.gnu.org; Thu, 07 Apr 2022 12:33:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncV4P-0001DE-DL for bug-guix@gnu.org; Thu, 07 Apr 2022 12:33:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncV4P-0006aW-3D for bug-guix@gnu.org; Thu, 07 Apr 2022 12:33:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=kK82B2yGE9bueS3xrav8rJVQffiHIg6phmAI6mgTmwM=; b=pjqoDR00gDpkNg SUkT3MASCnapq/II8qjkBVHggh+3WPpuMBguTcjOiqHsIHQ75L8yaDhzvgo7oqfQDd6jC4WyNUBzt JS/fr0YAltYFvchAqbkNsbIA604gDXIfg6QZYdpMSl1H+55GM9Mubmme5JHPwYnnWuFehfVbzfD0v cKbVCS3MWT7x3/z9oioG0r56yDi+nAX+va05HTrHKAbUFeegDvc8yp++CkxSXbQ8czwc2oF4GF1u3 9kz1Rf90tFvLJAV0VlNNkf09bqni7b9DrPXiT4sZ4Zs/wAfmqMymYOr0UHPq/D8HQIMSKNDaprkIb NQX0EWZFVZanyy/ecq3g==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52546 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncV4K-00030P-9Y for bug-guix@gnu.org; Thu, 07 Apr 2022 12:33:12 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 Germinal an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 07 Apr 2022 18:33:10 +0200 Message-ID: <87r168etvd.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649349257; 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=kK82B2yGE9bueS3xrav8rJVQffiHIg6phmAI6mgTmwM=; b=g7oXcfRPoQVzevcl1or+lPSCIZ8hQTK9gj5fAtn9vbKElGvyRj2awt1jBH37/ikgJDxVFg g6upt8UAm29bFqp9MwftbuA3EUwclUVPB854dMo65Fxe+nRmLlQVqBfgYh3A+mncEBduKp 5LutfXZA1ctBuDQ7Ak3YbMJjOYKYYSCp1rS+eY71JlIOjpQNo4o4XbKnOEzMz7sKrkS09d NiLb7bdqbR123HLpRwS6Dl7PIs66I4LtjlIBrdq1C9gIh7vVeI6nG9zeXwu1UYeRxrx4EJ aoi9xf5pBNyLSx7lZhLndnzeYdH3Oa+d5TLZABT1PtcWh5xmpr+U4xBKqN6qKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649349257; a=rsa-sha256; cv=none; b=ZxoCrWiFHZBzNaV2p50KCAHBPfImzm0LSfMkQaO5HVsYH9gxDXaMcBUFWGiVhdQ4K7kiyI wOvUzNdtVqaEaZYMbNjHDUGNwZprgEQMeDf35iU2iOCiai0ouhVipDugSVPccPBs7s78TZ Suuyxg78PDmJ25zTkn9AyMjE/z3VuXWolYRu5zmKK0NORgoaRgIe38/sxx/6hIAKYJFgIM VzrxO8DOV0AUcLxK+vOMrTqt3ARNlOp1zAq5S3z+SYmFwcy6I+7TOeibrQpseMiU0AKAxS Ee9hPIPTYlZTN0QDI1h9PElUPfRNSdmabUE2UeeNtnX0iU3UhnF/lOjTCgjCUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=pjqoDR00; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=pjqoDR00; dmarc=pass (policy=none) header.from=gnu.org; 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: A10033CFBC X-Spam-Score: -2.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: QEQNY8VVAwsJ Hi! Following the Shepherd upgrade in commit 400c9ed3d779308e56038305d40cd93acb496180, attempts to open non-root LUKS devices from a Shepherd service fail with this cryptsetup message: Nothing to read on input. This is because standard input is now /dev/null so it cannot read the passphrase. This is because =E2=80=9Cshepherd.conf=E2=80=9D now does: (start-in-the-background =E2=80=A6) (redirect-port (open-input-file "/dev/null") (current-input-port)) =E2=80=A6 meaning that =E2=80=98redirect-port=E2=80=99 is now called before= services are started. =E2=80=98fsck=E2=80=99 invocations for non-root file systems (started from = Shepherd services) would have the same problem. I=E2=80=99ll try and come up with a solution=E2=80=A6 Ludo=E2=80=99.