Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ns8N8-0004Uc-L2 for mharc-grub-devel@gnu.org; Fri, 20 May 2022 15:33:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ns8Mv-0004R7-93 for grub-devel@gnu.org; Fri, 20 May 2022 15:33:02 -0400 Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:42865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ns8Mt-0000mX-NV for grub-devel@gnu.org; Fri, 20 May 2022 15:33:01 -0400 Received: by mail-vk1-xa29.google.com with SMTP id e144so4560716vke.9 for ; Fri, 20 May 2022 12:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ch3jjr5Y96uKGrGmqa/L18yRvvUsq3/MfcQg20S5ZQg=; b=Nv1lhiNbhORV9cCt5dCDnwHEXZLlMOqKiVyTe2WnugiZmxl2bMKk8EVceYdm0Fo2D6 50gnx+ke00SRBxZ3VJRjXVgZR+m3nqHky6CaVkuH5yv3PFok2sykm66zFBDCbDaUTCcZ JQJMZ7tfxZPIQ/vY8Urq0pTTWl+SJSQK8xHrn1fQQNt45s70GT/0ziRTSAgf4vpTTKHZ GA+12gXdmPjSTW2DVaWIBOd7NyNMXPkPC+o9viiR4til+y3aD6CxXIUPgM2xOdoyYMoc CeecwkpO6+x17tvZNLyqC+0mEbI5GBzJ8PYeLzcZMRvKtqY/Z48Kz+fLF6Fp82doHG3W 9yLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ch3jjr5Y96uKGrGmqa/L18yRvvUsq3/MfcQg20S5ZQg=; b=N5YIDILn9TUx61PMUtpPxnKfWQbjoJeRtB8WQgNFbAbcXQHWFH6Fndjriczx0X8cQE Z8O4yULQQkKiOokdNoXhRP3jNDrtGCFdt2BdDwpJ7599TJynjSUY4xY3HD42h7p8nhVS WJpUzVGtSK4QV7mKiybkJz1uDQWE2kavilr4RHLYMw4hRQBxwk75pzTxPFHniRWTfKMB mV3sVPVifs054RV5oWOWDvhsGsZfiAnL5umK42yEhCEYzCngv+na99S/ON703swK2x8O fttlTvYzyZAuHN2B5ZeTc4AJD7s8nn8DCfVfzKg7wdnquUpHGm28vcGHvx9HANyVUKMn GE6w== X-Gm-Message-State: AOAM531TXV8HQRUQQdvuDjStzmuOXbWJI/xJW0NzJhWXuOh5f1n5UXem 6034yiaW9jnX8kRRK4nV44+rnpMN0Y9pYQ== X-Google-Smtp-Source: ABdhPJxC48OFBlcM4d1enIMvC5M7w0c+64ZUM02vffSnp3gheIOjR0jjXTqayXyym1KnDV4K410xjw== X-Received: by 2002:a05:6122:818:b0:357:26f8:5e73 with SMTP id 24-20020a056122081800b0035726f85e73mr4557676vkj.5.1653075178614; Fri, 20 May 2022 12:32:58 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id g27-20020a056102081b00b00335baca067dsm519143vsb.2.2022.05.20.12.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 12:32:58 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Denis 'GNUtoo' Carikli , Patrick Steinhardt , John Lane , Glenn Washburn , Daniel Kiper Subject: [PATCH v3 5/5] docs: Add documentation on keyfile option to cryptomount Date: Fri, 20 May 2022 14:32:19 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::a29; envelope-from=development@efficientek.com; helo=mail-vk1-xa29.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2022 19:33:02 -0000 Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- docs/grub.texi | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/grub.texi b/docs/grub.texi index 50ef28edd..0a8057482 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -4490,11 +4490,15 @@ Alias for @code{hashsum --hash crc32 arg @dots{}}. See command @command{hashsum} @node cryptomount @subsection cryptomount -@deffn Command cryptomount [@option{-p} password] device|@option{-u} uuid|@option{-a}|@option{-b} -Setup access to encrypted device. If @option{-p} is not given, a passphrase -is requested interactively. Otherwise, the given @var{password} will be used and -no passphrase will be requested interactively. -Option @var{device} configures specific grub device +@deffn Command cryptomount [ [@option{-p} password] | [@option{-k} keyfile [@option{-O} keyoffset] [@option{-S} keysize] ] ] device|@option{-u} uuid|@option{-a}|@option{-b} +Setup access to encrypted device. A passphrase will be requested interactively, +if neither the @option{-p} nor @option{-k} options are given. The option +@option{-p} can be used to supply a passphrase (useful for scripts). +Alternatively the @option{-k} option can be used to supply a keyfile with +options @option{-O} and @option{-S} optionally supplying the offset and size, +respectively, of the key data in the given key file. + +Argument @var{device} configures specific grub device (@pxref{Naming convention}); option @option{-u} @var{uuid} configures device with specified @var{uuid}; option @option{-a} configures all detected encrypted devices; option @option{-b} configures all geli containers that have boot flag set. -- 2.34.1