On 2018-06-21 16:51, Steven Susbauer wrote:
On 06/21/2018 02:24 AM, Carlos E. R. wrote:
Hi,
in a 15.0 freshly installed I got this /etc/crypttab file:
cr_sda4 /dev/sda4
It surprises me that there are no "options". The normal syntax is:
# - ------------------------···-------------···--------···------------------... # <target device> <source device> <key file> <options> # ------------------------···-------------···--------···------------------
That is the normal syntax, and it used to be mandatory - however the manpage explains the behavior:
The third field specifies the encryption password. If the field is not present or the password is set to "none" or "-", the password has to be manually entered during system boot.
Ok.
The fourth field, if present, is a comma-delimited list of options.
But what surprises me more is "/dev/sda4". I thought that method was deprecated, and we should use UUIDs instead. In my main computer, disk /dev/sda changes from boot to boot depending on what external disks I have connected, or none. Thus the rest, sdb, sdc... shift.
I don't think this is correct. :-? There is nothing in the documentation saying this is deprecated, both are supported.
It is openSUSE who deprecated it. YaST aborts the upgrade on certain releases at least on those names on fstab.
It is not common for block devices to randomly change (I've only experienced a change when I specifically set out to do so), but if that is something that happens to you it might be worth adding the UUID instead.
I don't expect it to happen on the laptop, it only has one. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)