From: ludo@gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Encrypted root partition
Date: Wed, 18 Jan 2017 22:16:24 +0100 [thread overview]
Message-ID: <87inpc83x3.fsf@gnu.org> (raw)
In-Reply-To: <87eg00k372.fsf@gmail.com> (Chris Marusich's message of "Wed, 18 Jan 2017 03:38:57 -0800")
Chris Marusich <cmmarusich@gmail.com> skribis:
> Chris Marusich <cmmarusich@gmail.com> writes:
>
>> ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> Chris Marusich <cmmarusich@gmail.com> skribis:
>>>
>>>> Is anyone actively working on documenting the new encrypted root stuff?
>>>> If not, I'm happy to try my hand at it. I'm interested in trying to set
>>>> it up on my laptop, anyway.
>>>
>>> I’ve added documentation in 2b5fea5ba3b07999cf198e1132ffcacbfcb7ed72.
>>>
>>> Please send a patch if you think of improvements that can be made.
>>
>> I'm happy to report that I was successful in setting up an encrypted
>> root file system on my Libreboot laptop. I have to enter the passphrase
>> twice, but that's no different from the normal case (without Libreboot).
>> It took me multiple days to get it working, though, because each time I
>> tried to run "guix system init", it took over 8 hours to finish!
>>
>> This is really good! Thank you for adding this feature.
>
> As a bonus, I realized that one could use this feature to encrypt swap,
> also. You can encrypt your swap area by using a swap file in the root
> file system. Specifically, if you do something like this...
>
> # Make the file readable/writable only by root.
> sudo dd if=/dev/zero of=/swapfile bs=1MiB count=10240
> sudo chmod 600 /swapfile
> sudo mkswap --label swap /swapfile
>
> and then you add a single line to your operating system configuration
> file like this...
>
> (swap-devices '("/swapfile"))
You may even be able to use /dev/mapper/something-encrypted here, albeit
with an additional passphrase prompt.
Ludo’.
next prev parent reply other threads:[~2017-01-18 21:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 22:31 Encrypted root partition Ludovic Courtès
2016-11-24 6:45 ` Chris Marusich
2016-11-24 22:37 ` Ludovic Courtès
2016-11-25 16:06 ` ng0
2017-01-18 9:58 ` Chris Marusich
2017-01-18 11:38 ` Chris Marusich
2017-01-18 20:53 ` Efraim Flashner
2017-01-18 21:16 ` Ludovic Courtès [this message]
2017-01-19 4:08 ` Mike Gerwitz
2017-01-19 4:21 ` Chris Marusich
2017-01-19 22:31 ` dian_cecht
2017-01-18 21:17 ` Ludovic Courtès
2017-01-19 4:30 ` Chris Marusich
2017-01-19 12:07 ` Ludovic Courtès
2017-01-20 5:37 ` Chris Marusich
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=87inpc83x3.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).