Bjoern Voigt wrote:
I reinstalled Windows 10 on a dual boot notebook. Windows is now using one partition less, because I combined two Windows partitions. As the result all Linux partition numbers changed: e.g. /boot from /dev/sda6 to /dev/sda5; LVM with / and swap from /dev/sda8 to /dev/sda7.
Partition numbers should not matter anyway, because I use UUIDs in /etc/fstab: /dev/system/swap swap swap defaults 0 0 /dev/system/root / ext4 defaults 1 1 UUID=5aaaa284-fcbe-4db7-a746-ae0f94f0bb64 /boot ext4 defaults 1 2 UUID=C0F5-E9B0 /boot/efi vfat umask=0002,utf8=true,ro 0 3
After Windows setup finished I booted a USB key (Leap 42.3 rescue), mounted the partitions (e.g. cryptsetup open /dev/sda7 rootfs; vgscan; mount /dev/system/root /mnt; mount -o bind /dev /mnt/dev; same with /proc and /sys; chroot /mnt) checked filesystems in Yast and installed grub2 in Yast. I also tried manuell commands: mkinitrd; grub2-mkconfig -o /boot/grub2/grub.cfg
Unfortunately the notebook still does not boot Leap 42.3.
The Initramfs somehow does not try to open the encrypted LVM device /dev/sda7.
[...] dracut-initqueue: systemd-escape: invalid option -- '5' dracut-initqueue: Warning: Failed to start email@example.com: Unit firstname.lastname@example.org failed to load: No such file or directory [...] dracut-initqueue: Warning: dracut-initqueue timeout - starting timeout scripts dracut-initqueue: Warning: dracut-initqueue timeout - starting timeout scripts dracut-initqueue: Warning: dracut-initqueue timeout - starting timeout scripts [...] dracut-initqueue: Warning: Could not boot dracut-initqueue: Warning: /dev/mapper/system-root does not exist dracut-initqueue: Warning: /dev/system/root does not exist Requested transaction contradicts existing jobs: Transaction is destructive. dracut-initqueue: Failed to start dracut-emergency.service: Transaction is destructive dracut-initqueue: Not all disks have been found dracut-initqueue: You might want to regenerate your initramfs
I could resolve the problem with some hints from
Bug 904987 - Dracut not working as expected with full-disk encryption https://bugzilla.opensuse.org/show_bug.cgi?id=904987
I had to add / repair a line in /etc/crypttab and I had to regenerate Initramfs with mkinitrd.
/etc/crypttab is now: cr_ata-ST500LX005-1CW162_W370AABM-part7 /dev/disk/by-id/ata-ST500LX005-1CW162_W370AABM-part7 none none