diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 10:27:12 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-11-04 10:54:39 +0100 |
| commit | 316d65be0ca41c277349c4f0127513f98dbec680 (patch) | |
| tree | 305a11b7655dc9d973ac60a441022a90934d3ccf /gnu/system | |
| parent | 5ffea4776d33e73922aa5fdbb7ac4dafbfbf15c5 (diff) | |
doc: Back up on the claim of encrypted root partitions.
Reported by 宋文武 <iyzsong@openmailbox.org>
at <https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00096.html>.
* doc/guix.texi (System Installation): Comment out encrypted root
partition commands.
* gnu/system/examples/desktop.tmpl (mapped-devices): Remove.
(file-systems): Refer to the root by label.
* NEWS: Adjust.
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/examples/desktop.tmpl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gnu/system/examples/desktop.tmpl b/gnu/system/examples/desktop.tmpl index 7a479d1123b..ee660e05893 100644 --- a/gnu/system/examples/desktop.tmpl +++ b/gnu/system/examples/desktop.tmpl | |||
| @@ -13,17 +13,9 @@ | |||
| 13 | ;; Assuming /dev/sdX is the target hard disk, and "root" is | 13 | ;; Assuming /dev/sdX is the target hard disk, and "root" is |
| 14 | ;; the label of the target root file system. | 14 | ;; the label of the target root file system. |
| 15 | (bootloader (grub-configuration (device "/dev/sdX"))) | 15 | (bootloader (grub-configuration (device "/dev/sdX"))) |
| 16 | |||
| 17 | ;; Here we assume that /dev/sdX1 contains a LUKS-encrypted | ||
| 18 | ;; root partition created with 'cryptsetup luksFormat'. | ||
| 19 | (mapped-devices (list (mapped-device | ||
| 20 | (source "/dev/sdX1") | ||
| 21 | (target "root-partition") | ||
| 22 | (type luks-device-mapping)))) | ||
| 23 | |||
| 24 | ;; Mount said encrypted partition. | ||
| 25 | (file-systems (cons (file-system | 16 | (file-systems (cons (file-system |
| 26 | (device "/dev/mapper/root-partition") | 17 | (device "root") |
| 18 | (title 'label) | ||
| 27 | (mount-point "/") | 19 | (mount-point "/") |
| 28 | (type "ext4")) | 20 | (type "ext4")) |
| 29 | %base-file-systems)) | 21 | %base-file-systems)) |
