file-systems: Allow swap space lookup by UUID/label.
authorLudovic Courtès <ludo@gnu.org>
Thu, 22 Oct 2020 21:28:31 +0000 (23:28 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 30 Oct 2020 00:14:20 +0000 (01:14 +0100)
commit11e19555e5693b420f32ab5cc002764ef906ad16
tree783c78dfa25715132cb6816881e27f65b3ac0cf0
parent6f1c9c341140631d0ab2fc7ac64aadf6bd76afa3
file-systems: Allow swap space lookup by UUID/label.

* gnu/build/file-systems.scm (%linux-swap-magic, %page-size): New
variables.
(linux-swap-superblock?, read-linux-swap-superblock)
(linux-swap-superblock-uuid, linux-swap-superblock-volume-name): New
procedures.
(%partition-label-readers, %partition-uuid-readers): Add them.
gnu/build/file-systems.scm