From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 27 Jul 2015 21:49:49 +0200 (CEST) Received: by wibxm9 with SMTP id xm9so127420304wib.0 for ; Mon, 27 Jul 2015 12:49:47 -0700 (PDT) Message-ID: <55B68B57.5090505@gmail.com> Date: Mon, 27 Jul 2015 21:49:43 +0200 From: Milan Broz MIME-Version: 1.0 References: <20150726170259.GC16353@zeromail.org> <420ab8fdd4afe54db20611d3a179dbe6.squirrel@ssl.verfeiert.org> <20150727192634.GG16353@zeromail.org> In-Reply-To: <20150727192634.GG16353@zeromail.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] persistent naming: add ID in addition to UUID List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ilf , dm-crypt@saout.de On 07/27/2015 09:26 PM, ilf wrote: > Sven Eschenberg: >> Since you want to use crypttab anyway, is there any particular reason not >> to use /dev/disk/by-id/? > > You are comlpetely right, that works and I should probably use that. > >> As UUID= needs proper symlinks anyway, it is rather a handy >> shorthand at the commandline. > > Well, the man-page for crypttab(5) in Debian and Derivatives sais, "the > UUID is supported as well, using UUID=". So adding an ID= > option would make this more consistent. Actually I added UUID=<..> to cryptsetup to mainly easily implement scripts doing the similar action as fstab/crypttab UUID= mount. (fstab allows LABEL and UUID but not ID; also LUKS has no label) Not sure if adding ID is worth to do this, it is really just shortcut to udev symlink. Note that UUID is read from header and has always the same format. ID can be crazy combination of characters, sometimes even dynamic (not everything is hw-serial based, see DM devices for example). (I remember several bugs for multipath/SCSI devices where hw-based ID contains binary data and must be properly escaped for symlink name...) Milan