[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LUKS UUID format
From: |
Andrei Borzenkov |
Subject: |
Re: LUKS UUID format |
Date: |
Tue, 18 Nov 2014 15:38:33 +0300 |
On Tue, Nov 18, 2014 at 3:25 PM, John Lane <address@hidden> wrote:
> When opening a LUKS volume, I found that the UUID needs to be just the
> digits without the additional formatting hyphens that are commonplace.
>
> cryptomount -u af4b91598cbb4122b8010c18adf26b3e
>
> whereas all other places, like setting the Grub "root" and the Linux
> kernel options, expect the hyphenated format that is described in
> RFC4122. Also, UUIDs in a generated grub.cfg have the hypenated format.
>
> I have a little function in my experimental grub.cfg that I use like this
>
> menuentry 'Linux Encrypted' { crypt_start
> af4b9159-8cbb-4122-b801-0c18adf26b3e da9253f8-14ec-43df-8e79-fdf66f71adc8 }
>
> but I've had to modify it to specify the crypt's UUID twice, like this:
>
> menuentry 'Linux Encrypted' { crypt_start
> af4b9159-8cbb-4122-b801-0c18adf26b3e af4b91598cbb4122b8010c18adf26b3e
> da9253f8-14ec-43df-8e79-fdf66f71adc8 }
>
> I wondered if there was any Grub2 function that I could use de-hyphenate
> a parameter containing a UUID, or if "cryptomount" can, or could be made
> to, accept formatted UUIDs .
>
Sure it could. Just needs someone to persuade it :)
- LUKS UUID format, John Lane, 2014/11/18
- Re: LUKS UUID format,
Andrei Borzenkov <=