guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drive identifiers


From: Ludovic Courtès
Subject: Re: Drive identifiers
Date: Wed, 24 Jan 2018 15:12:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Ricardo Wurmus <address@hidden> skribis:

> ;; Get the UUID of the encrypted disk
> (define %uuid
>   (let* ((port (open-input-pipe "blkid -s UUID -o value /dev/sda1"))
>          (str  (read-line port)))
>     (close-pipe port)
>     str))
>
> (operating-system …
>   (mapped-devices (list (mapped-device
>                          (source (uuid %uuid))
>                          (target "root")
>                          (type luks-device-mapping))))

It’s a weird example because the idea of UUIDs is precisely to *not*
record the partition’s /dev name.  :-)

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]