Bug ID 1030299
Summary No /etc/crypttab created when using manual partition setup
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component YaST2
Assignee yast2-maintainers@suse.de
Reporter mrueckert@suse.com
QA Contact jsrain@suse.com
Found By ---
Blocker ---

I wanted a system where all the different "partitions" or on a single encrypted
device. 

 steps to reproduce:
---------------------

0. start installer and open partitioning tool in expert mode

1. switch to text console

2. manually create partition setup outside of yast with parted

sda1 fat boot/efi
sda2 lvm partition for the rest of the disk

manually run cryptsetup luksFormat --use-random --key-size=512 /dev/sda2

2. pick "re-read disks" from the menu.

   Yast will prompt you for the password of the new encrypted partition.

3. create VG and PVs for root, home and swap on the encrypted.
4. format sda1 with fat and mount it to /boot/efi/

5. install system and reboot.

6. first boot will fail because the initrd can not setup the luks volume
because of missing /etc/crypttab.

7. boot into rescue system and manually create /etc/crypttab with content:
```
csda2 /dev/sda2 none none
```

call mkinitrd inside a chroot. ( I can provide all the exact steps for doing
this)

8. reboot machine and see it finally boot.

Workaround:
------------

during package installation create /mnt/etc/crypttab manually. initrd created
at the end of the installation will support luks and system will boot properly.


You are receiving this mail because: