Skip to content

Instantly share code, notes, and snippets.

@GrimKriegor
Last active November 29, 2017 16:45
Show Gist options
  • Save GrimKriegor/f84b28d575888ba28f38b977c80200b1 to your computer and use it in GitHub Desktop.
Save GrimKriegor/f84b28d575888ba28f38b977c80200b1 to your computer and use it in GitHub Desktop.

Hibernate on Parabola or Arch with LUKS+LVM full disk encryption

  1. Add the "resume" hook after "lvm" in /etc/mkinitcpio.conf

https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Configure_the_initramfs

  1. Redo the ramdisk for all your kernels

    mkinitcpio -p linux-libre{-lts,-grsec}

  2. Edit the Libreboot image to include the resume=</dev/mapper/lvm-partition> kernel parameter in grub

https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Required_kernel_parameters

https://libreboot.org/docs/gnulinux/encrypted_parabola.html

  1. Set a lower swappiness value so the swap doesn't get abused by the system

    /etc/sysctl.d/99-sysctl.conf

    vm.swappiness=10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment