Advertisement
wreiner

Crypt-Setup-Problem

Sep 26th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Booting from grml works:
  2. -------------------------
  3.  
  4. cryptsetup luksOpen /dev/sda2 cryptpv
  5.  
  6. vgchange -ay
  7. mount /dev/system_vg/root_lv /mnt/
  8. mount /dev/sda1 /mnt/boot/
  9. mount /dev/system_vg/var_lv /mnt/var/
  10. mount /dev/system_vg/opt_lv /mnt/opt/
  11.  
  12. mount -t proc none /mnt/proc
  13. mount -t sysfs none /mnt/sys
  14. mount --rbind /dev /mnt/dev
  15.  
  16. chroot /mnt /bin/bash
  17.  
  18. Things done:
  19. ------------
  20.  
  21. root@grml:/# dpkg -l | grep crypt | awk '{print $2;}'
  22. cryptsetup-bin
  23. duplicity
  24. gcr
  25. libcrypt-passwdmd5-perl
  26. libcryptsetup4
  27. libgcrypt11:amd64
  28. libgcrypt11:i386
  29. libhcrypto4-heimdal:amd64
  30. libhcrypto4-heimdal:i386
  31. libk5crypto3:amd64
  32. libk5crypto3:i386
  33. libmhash2
  34. libnettle4:amd64
  35.  
  36. root@grml:/# cat /etc/crypttab
  37. pvcrypt UUID=5def9ccb-9158-4849-b024-3ce238347dde none luks
  38.  
  39. root@grml:/# cat /etc/initramfs-tools/modules
  40. dm-crypt
  41. dm-mod
  42. sha256
  43. aes_x86_64
  44. aes_generic
  45. aes
  46. cbc
  47. sha256_generic
  48. aesni_intel
  49. aes
  50. aes_i586
  51. aes_x86_64
  52. aes_generic
  53. dm-crypt
  54. dm-mod
  55. sha256
  56. sha256_generic
  57. lrw
  58. xts
  59. crypto_blkcipher
  60. gf128mul
  61.  
  62. root@grml:/# cat /etc/initramfs-tools/conf.d/cryptroot
  63. CRYPTROOT=target=cryptpv,source=/dev/disk/by-uuid/5def9ccb-9158-4849-b024-3ce238347dde
  64.  
  65. root@grml:/# cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
  66. GRUB_CMDLINE_LINUX_DEFAULT="kopt=root=/dev/mapper/system_vg-root_lv cryptopts=target=cryptpv,source=/dev/disk/by-uuid/5def9ccb-9158-4849-b024-3ce238347dde,lvm=system_vg pci=nomsi noapic irqpoll"
  67.  
  68. update-initramfs -u -k all
  69. update-grub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement