Comment 2 for bug 472820

Revision history for this message
5tan (kamildor) wrote :

Hi.
Installation (from 9.10 alternate CD) is stopped after choosing manual partitioning (progress bar stop on 50%).
I've reboot, and before choosing manual partitioning:
1. switch to console (Alt+F2),
2. activate shell (enter) and activate LVM (vgscan; vgchange -ay)
3. decrypt logical volumes (cryptsetup luksOpen /dev/mapper/#NAME_OF_VG-NAME_OF_LOGICAL_VOLUME#)

After step 3: switching to console with debian-installer running (Alt+F1), choosing manual partitioning... And again - progress bar is stop on 50%.

Workaround:
1. Start computer with LiveCD
2. Add repositories (e.g. in synaptic)
3. Install lvm2 and cryptsetup and dependencies (apt-get install lvm2 cryptsetup)
4. Setup LVM and cryptosetup (e.g. vgscan, vgchange -ay, cryptsetup luksOpen /dev/mapper/#VG-LV# #DECRYPTED_LV#)
5. Run "normal" installation
6. Choose manual partitioning in set-up partitions screen, and choose your /dev/mapper/#DECRYPTED_LV# (e.g. /dev/mapper/cryptroot)
7. Continue system installation - when it success please DON'T REBOOT!
8. Mount your fresh installed system in /mnt or what you want (remember mount your /usr/ LV - if any - on /mnt/usr/ and esspecialy /boot partition - if you have boot partition. Check your /etc/fstab )

####STEPS TO DO IN CHROOTED ENVIRONMENT###
9. Chroot into your fresh installed system (chroot /mnt)
10. You should mount /proc /sys/ and maybe /dev/ and /dev/pts (mount -t proc proc /proc; mount -t sysfs sysfs /sys; mount -t tmpfs udev /dev; mount -t devpts devpts /dev/pts)
11. apt-get install lvm2 cryptsetup
12. Edit /etc/initramfs-tools/conf.d/cryptroot (echo "target=#CRYPTROOT#,source=/dev/mapper/#DECRYPTED_LV#" > /etc/initramfs-tools/conf.d/cryptroot )
13. Edit /etc/crypttab (if you want other encrypted volumes to mount on boot-time)
14. Update initrd with update-initramfs -u -k `uname -r`
15. umount what you before mount in chroot environment
16. exit from chroot
### END OF CHROOTED ENVIRONMENT STEPS ###
17. Umount everything you mounted before you chroot (probably you can safely skip this step - LiveCD umount it for you on restart)
18. Restart system

If everything is OK after reboot you should see grub menu, and after few seconds "Enter passphrase": :)

Good luck!