[dm-crypt] Detached headers, multiple drives and UUIDs

Robert Nichols rnicholsNOSPAM at comcast.net
Tue Apr 11 03:41:27 CEST 2017


On 04/10/2017 04:45 PM, 7heo wrote:
> On Mon Apr 10 23:29:20 2017 GMT+0200, Robert Nichols wrote:
>> On 04/10/2017 03:53 PM, 7heo wrote:
>> The UUID reported by "blkid" and "lsblk -f" is _exactly_ the luksUUID. The UUID reported by "dmsetup info" is the luksUUID prefixed by "CRYPT-LUKS1-" and suffixed by "-{mapper_name}". If you leave the UUID the same, the output from "blkid" and "lsblk -f" will be confusing.
>
> Correct me if I'm wrong, but that could be a problem for some scripts, couldn't it?

Of course that all depends on the script.  System scripts typically use UUIDs to identify devices to be opened/mounted, and you've already given up that possibility by detaching the header from the device.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.



More information about the dm-crypt mailing list