|
Bugzilla – Full Text Bug Listing |
| Summary: | Yast installer stores device id in crypttab vs fstab uuid breaking encryption as id's are different in live system | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | t neo <tneo> |
| Component: | Installation | Assignee: | YaST Team <yast-internal> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Major | ||
| Priority: | P3 - Medium | CC: | aschnell, mfilka, nwr10cst-oslnx, tneo |
| Version: | Leap 15.1 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | SLED 15 | ||
| URL: | https://trello.com/c/RJ2YOnR3 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | log tar file | ||
|
Description
t neo
2020-03-04 14:35:21 UTC
I can confirm that the installer uses device names in "/etc/crypttab". Fortunately, it has worked for me. However, I don't like it, so I change "crypttab" to use the UUID of the encrypted partition. And then I run "mkinitrd" before rebooting to check that everything still works. So, yes, I think it a mistake to use device names in "/etc/crypttab". Better to always use UUID, with one exception. The exception is when using a randomly encrypted swap, where you cannot use UUID because the UUID changes on each boot. In that case I recommend the device-id rather than the device name. This bug is even more annoying after it turned out that every reboot my device id's got swapped. Using the UUID for the drive resolved the issue for me. For me YaST does write UUID to crypttab. Please provide YaST logs of the installation, see http://en.opensuse.org/openSUSE:Bugreport_YaST. Created attachment 834137 [details]
log tar file
I found the attached file in /var/log/Yast2 OK, the logs show that the LUKS devices already existed before the installation. In that case YaST indeed uses the device name. Same with latest Tumbleweed. The fix is for Tumbleweed only, no backport to Leap 15.1 planned. |