aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-05-30 23:44:28 +0200
committerLudovic Courtès <ludo@gnu.org>2014-05-30 23:46:17 +0200
commit85a83edb369dcebd1019674427dda9e6b3e2ed4b (patch)
tree9c03a8f2bdd4b97bb61b4aa4826a269b488ee9b4 /doc
parentbd3fc08c4dc718bb76c1a45b875c97d67bfdc3fa (diff)
downloadguix-85a83edb369dcebd1019674427dda9e6b3e2ed4b.tar
guix-85a83edb369dcebd1019674427dda9e6b3e2ed4b.tar.gz
linux-initrd: Allow use of volume labels in 'file-system' declarations.
* guix/build/linux-initrd.scm (%ext2-endianness, %ext2-sblock-magic, %ext2-sblock-creator-os, %ext2-sblock-uuid, %ext2-sblock-volume-name): New macros. (read-ext2-superblock, ext2-superblock-uuid, ext2-superblock-volume-name, disk-partitions, partition-label-predicate, find-partition-by-label, canonicalize-device-spec): New procedures. (mount-file-system): Use 'canonicalize-device-spec' on SOURCE. (boot-system): Likewise for ROOT. * doc/guix.texi (Using the Configuration System): Adjust 'file-system' declaration accordingly.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index c10479ff12..eeadb04d78 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -3130,7 +3130,7 @@ Linux-Libre kernel, initial RAM disk, and boot loader looks like this:
(bootloader (grub-configuration
(device "/dev/sda")))
(file-systems (list (file-system
- (device "/dev/disk/by-label/root")
+ (device "/dev/sda1") ; or partition label
(mount-point "/")
(type "ext3"))))
(users (list (user-account