On 8/30/19 3:52 AM, Josef Wolf wrote:
Now I reinstalled openSUSE Leap 15.1, and this no longer works. I always have to type the password when booting.
Yes, it still works. I'm using on Leap 15.2Alpha (in a virtual machine). I don't think I have tested on 15.1, but I'm sure it still works there too. What has changed, is that the installer doesn't support it, so you cannot set it up during install. You need to set it up manually after the install. And then there's the additional problem -- once LUKS, always LUKS. The system sees the LUKS header, and treats it as a LUKS encrypted partition instead of a plain dmcrypt partition.
raven:/ # grep swap /etc/crypttab cr_ata-ST3250310AS_6RYB6W7W-part7 UUID=a71035e1-abe3-4cb0-bee9-af42787c40cf /dev/urandom swap raven:/ #
That won't work. You need to replace that "UUID=some-funky-string" with "/dev/disk/by-id/different-funky-string" Maybe it just needs to be "/dev/disk/by-id/ata-ST3250310AS_6RYB6W7W-part7" but best to check that this works. You can't use UUID to identify the randomly encrypted swap partition, because the UUID is randomly changed every time (once you get it working). Go into Yast Bootloader -- the kernel parameters tab. There may be a resume=some-string to resume from swap. Best to change that to "noresume", since resume from hibernation won't work with randomly encrypted swap. Once you have made those changes, I suggest you reboot to make sure everything still works. And you will still need to provide the password for this reboot. If all is fine, then: swapoff -a #disconnect swap dd if=/dev/zero of=/dev/disk/by-id/ata-ST3250310AS_6RYB6W7W-part7 count=1000 That should zap the LUKS header on the swap partition. Then reboot and you should have it working as you want. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org