Ok lattest news:
What I have done …
Installed 12.2
- On Software selection removed grub2
- once the installer asked to go on adverted that grub2 was not available, complained about it, then a Yast prompt to choose a bootloader appeared.
I choose Grub and selected purposed config.
Just added a checkbox on boot on MBR and place bootloader on /boot
Remember this time I was using a flash usb as the /boot.
The setup I made is like this:
/sdc1 /boot
/sda1 old swap encrypted (enc) not touched
/sda2 old / encrypted (enc) not touched
/sda3 old /home encrypted (enc) not touched
/sda4 the new / only for this first install. It will be copied latter for the encrypted sda2.
System complains about not having swap … ignore move on.
The install completed with no problems and grub was the bootloader. As expected.
Ok now the part about migrating to the old setup, that is using sda1 as swap, sda2 as the new / and sda3 as the new /home
I basically followed the steps I usually take on :
http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/459912-11-1-11-4-luks-encryption.html
So, like the above link shows I made:
0 - backuyp fstab, vmlinuz, initrd, menu.lst
1 - Change /etc/fstab,
2 - Change /boot/grub/menu.lst
3 - cryptsetup luksOpen the partitions sda1, sda2,sda3… and mounted sda2 as /mnt/root
4 - made a swapon on the new /dev/mapper/swap
5 - rsync / with old sda2 now mounted on /mnt/root
6 - make a new mkinitrd with:
mkinitrd -d /dev/mapper/root -f "dm luks"
and rebooted the new system.
During boot I noticed that the password was asked twice all the time after each partition and that in the end there was an error like this:
device-mapper: create ioctl failed: Invalid argument
But the boot continued and finally I could see some boot going.
Too soon to be happy …it all stopped after:
Started Show Plymouth Boot Screen
Starting udev Coldplug all Devices ...
Started Load Kernel Modules
Starting Apply Kernel Variables
Strated Configuration File System
Started FUSE Control File System
Started Apply Kernel Variables
All of this is OK on screen, all green.
Then everything stops and after a long wait I press esc key and return to the text-base boot screen and there is message:
Enter your passphrase, only US keyboard layout is supported
I press Enter because this is obviously a mistake maybe induce by wrong kernel parameters.
but to no avail.
After a long while the messages start to pop
Dependency failed. Aborted start of /home
Dependency failed. Aborted start of Loging Service
Dependency failed. Aborted start of Network Manager
Dependency failed. Aborted start of Network Manager Wait Online
Dependency failed. Aborted start of Avahi mDNS/DNS-SD Stack
Dependency failed. Aborted start of D-Bus System Message Bus
Welcome to emergency mode. Use "systemctl default" or ^D to enter default mode.
Give root password for login:
and it accepts root password.
→ I severely suspect that kernel params might be wrong on this one !
My kernel line is
kernel /vmlinuz root=/dev/mapper/root luks_root=/dev/sda2 luks_swap=/dev/sda1 luks_home=/dev/sda3 luks="root swap home" vga=0x317 resume=/dev/mapper/swap splash=silent showopts
Is there something wrong with this in the current kernel version 3.2, specially in what concerns the luks part of the problem ?
Regards.