Comment 35 for bug 1003309

tdn (spam-thomasdamgaard) wrote :

Luis, I would like to do as you suggest. My partition table is seen here:

/dev/sda1 is /boot
/dev/sda5 is the LUKS encrypted partition containing LVM with swap and rootfs.

So, what is the procedure?
Will the following work?

apt-get update
apt-get install cryptsetup initramfs-tools lvm2
modprobe aes-x86_64
modprobe dm-crypt
modprobe dm-mod
cryptsetup luksOpen /dev/sda5 pvcrypt
vgchange -a y barbera
mount /dev/mapper/barbera-root /mnt
mount /dev/sda1 /mnt/boot
chroot /mnt
apt-get update && apt-get dist-upgrade
dpkg-reconfigure linux-image-3.2.0-23-generic


Do I have to mount /proc, /sys or other inside the chroot? Anything else I should be aware of?