Skip to content

Instantly share code, notes, and snippets.

@Lartza
Created October 24, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lartza/9858c068a053becbf337ef4d10e6d44e to your computer and use it in GitHub Desktop.
Save Lartza/9858c068a053becbf337ef4d10e6d44e to your computer and use it in GitHub Desktop.
cryptsetup luksFormat /dev/sda1 /boot/theKeyFile
cryptsetup luksOpen /dev/sda1 usb --key-file /boot/theKeyFile
mkfs.ext4 /dev/mapper/usb
mount /dev/mapper/usb /mnt
rsync -axv / /mnt
cryptsetup close(can't remember exact command) and recheck you can luksopen
remove splash from /boot/cmdline.txt like in the guide, try to reboot and try everything works like the guide says
(should be able to use luksopen with --key-file on the initramfs prompt too)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment