Skip to content

Configure Ubuntu to purge LUKS key and suspend-to-RAM

Notifications You must be signed in to change notification settings

c6fc/ubuntu-lukssuspend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto-builder for a functional Ubuntu LuksSuspend-to-RAM method.

Caveats

  • Works as-written with XFS and BTRFS
  • ext2, ext3, and ext4 filesystems must use the 'NOBARRIER' options
  • Active sessions on vty1-6 will cause the suspend to fail. The script accounts for that by killing all PIDs on VTYs.
  • The default options will create, write to, and chroot to /boot/suspend.

Usage

  • Run 'mksuspend.sh <luks_device>'. This can be the short-name or the /dev/mapper/sdXn_crypt
  • Call /boot/suspend/suspend.sh

After a few second delay, the host will suspend to RAM. When the host resumes, you will be prompted for the encryption passphrase on vty8. When entered, it will return to calling process.

Process

This script performs the following actions:

  • Builds a CHROOT target with the necessary executables and libraries to perform cryptsetup and suspend-to-RAM
  • Copies dynamically-generated bash scripts into the CHROOT target folder
  • Places handling scripts and hooks for lid-close ACPI events
  • Configures logind default lid action to 'ignore'.
  • Restarts ACPId to pick up the changes.

Behavior should function immediately after executing the script.

About

Configure Ubuntu to purge LUKS key and suspend-to-RAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages