summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-01 22:14:47 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-01 22:24:20 +0100
commit6d6e628119a043b3d8dd309d3e6d5a35bcd37618 (patch)
tree673c7fc50dce36b6d7f27096be04a8b553dc52ad /doc
parentb8d2eda4a37a7e4c9fb529bd48899d87cefaf345 (diff)
doc: Give an example with an encrypted root partition.
* gnu/system/examples/desktop.tmpl: Add 'mapped-devices' field. Use it in 'file-systems'. * doc/guix.texi (System Installation): Suggest encrypted partitions. Give an example of a command sequence.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index e8b79ecf986..bd9b42b20fe 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5237,14 +5237,24 @@ Setting up network access is almost always a requirement because the
5237image does not contain all the software and tools that may be needed. 5237image does not contain all the software and tools that may be needed.
5238 5238
5239@item 5239@item
5240Unless this has already been done, you must partition and format the 5240Unless this has already been done, you must partition, optionally
5241target partitions. 5241encrypt, and then format the target partitions.
5242 5242
5243Preferably, assign partitions a label so that you can easily and 5243Preferably, assign partitions a label so that you can easily and
5244reliably refer to them in @code{file-system} declarations (@pxref{File 5244reliably refer to them in @code{file-system} declarations (@pxref{File
5245Systems}). This is typically done using the @code{-L} option of 5245Systems}). This is typically done using the @code{-L} option of
5246@command{mkfs.ext4} and related commands. 5246@command{mkfs.ext4} and related commands.
5247 5247
5248A typical command sequence may be:
5249
5250@example
5251# fdisk /dev/sdX
5252@dots{} Create partitions etc.@dots{}
5253# cryptsetup luksFormat /dev/sdX1
5254# cryptsetup open --type luks /dev/sdX1 my-partition
5255# mkfs.ext4 -L my-root /dev/mapper/my-partition
5256@end example
5257
5248The installation image includes Parted (@pxref{Overview,,, parted, GNU 5258The installation image includes Parted (@pxref{Overview,,, parted, GNU
5249Parted User Manual}), @command{fdisk}, Cryptsetup/LUKS for disk 5259Parted User Manual}), @command{fdisk}, Cryptsetup/LUKS for disk
5250encryption, and e2fsprogs, the suite of tools to manipulate 5260encryption, and e2fsprogs, the suite of tools to manipulate