Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Created March 23, 2021 08:09
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 e-minguez/82238933ea81e2b7cce108844fc1ba93 to your computer and use it in GitHub Desktop.
Save e-minguez/82238933ea81e2b7cce108844fc1ba93 to your computer and use it in GitHub Desktop.
Manjaro pinebook pro FDE howto

Requisites

  • A manjaro x86_64 VM with X (see https://gitlab.manjaro.org/man...jaro-arm-installer/-/issues/10 4 for the reason behind the X requirement)
  • An extra disk. In my case, I've used a 8gb qcow2 empty file mapped as sata (important as the script only recognizes /dev/sd* or /dev/mmclblk* devices) so it is /dev/sda in the VM.

Process

  • ssh into the VM
  • pacman -Syyu manjaro-arm-installer
  • Reboot (just in case as it should have updated a few packages, including the kernel)
  • ssh into the VM again
sudo -i
export CRYPT=y
manjaro-arm-installer

It will ask you user/pass/software selection/keyboard/etc. then the luks password twice (first one to create the device, the second one to mount it)

Then:

  • power off the manjaro VM
  • plug a microsd into your computer and convert the qcow2 image into a raw one, then flash it to your microsd. Or just do it at once as:
qemu-img convert -f qcow2 -O raw manjaro-usb.qcow2 /dev/mmcblkX

Plug it into your pbp and profit!

In order to resize the luks partition:

  • parted /dev/mmcblkX, then resizepart NUMBER END (in my case, partition = 2, end = 125GB)
  • cryptsetup resize /dev/mapper/ROOT_MNJRO
  • resize2fs /dev/mapper/ROOT_MNJRO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment