unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Thomas Albers <tgalbers2000@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Typing LUKS passphrase only once and a possible solution
Date: Wed, 07 Jul 2021 18:42:20 +0200	[thread overview]
Message-ID: <87zguygggj.fsf@nckx> (raw)
In-Reply-To: <87k0m2gld3.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1822 bytes --]

Hi Thomas,

Quick answer; apologies if I miss some subtleties.

Thomas Albers 写道:
> My suggestion would be to add a "extra-options" field to
> <mapped-device> structure. This field would be appended to the 
> command
> line arguments to the cryptsetup call.
>
> One could also add a "keyfile" parameter but this would be too
> specific to the luks device mapper

Well, so is a field to add crypsetup-specific command-line 
arguments.

Abstracting this into meaningful field names like key-file is 
better from a readability point of view and allows implementation 
details like ‘we simply invoke cryptsetup’ to remain properly 
hidden from view.

Because naturally, one day cryptsetup will be rewritten in Guile.

> For example, not everyone would like to store the keyfile inside 
> the
> store.

I think it could still be a plain string passed straight to 
cryptsetup, with the user responsible for its existence.

> Also, is it possible to modify existing code for such small 
> changes,
> without needing to rewrite complete functions? Many of the 
> functions
> used are not exposed by the modules and one needs to rewrite the
> function one wants to use and also its dependencies.

You can force access to unexported symbols using (@@ (name of 
module) symbol).  It's as recommended as it sounds.  Nor can you 
rewrite parts of compiled procedures AFAIK.

> My last question would be: Why is the file called initrd, when 
> in
> reality a initramfs scheme is used?

Saves space :-)

Conceptually, they are the same thing.  Nobody who knows what 
‘initrd’ means will read the word in 2021 and think the 
distribution literally only supports pre-2005 ramdisks.

It also keeps us consistent with GRUB, which uses ‘initrd’.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2021-07-07 17:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-07 16:05 Typing LUKS passphrase only once and a possible solution Thomas Albers
2021-07-07 16:42 ` Tobias Geerinckx-Rice [this message]
2021-07-07 18:29   ` Thomas Albers
2021-07-08 17:29     ` Vagrant Cascadian
2021-07-07 18:12 ` Joshua Branson
2021-07-07 18:30   ` Wiktor Żelazny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zguygggj.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=tgalbers2000@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).