diff options
-rwxr-xr-x | bin/cryptsetup | bin | 0 -> 1524840 bytes | |||
-rwxr-xr-x | bin/resume | bin | 0 -> 1317856 bytes | |||
-rw-r--r-- | etc/suspend.conf | 8 | ||||
-rwxr-xr-x | init | 1 | ||||
-rwxr-xr-x | make | 3 |
5 files changed, 11 insertions, 1 deletions
diff --git a/bin/cryptsetup b/bin/cryptsetup Binary files differnew file mode 100755 index 0000000..aae4b30 --- /dev/null +++ b/bin/cryptsetup diff --git a/bin/resume b/bin/resume Binary files differnew file mode 100755 index 0000000..977924b --- /dev/null +++ b/bin/resume diff --git a/etc/suspend.conf b/etc/suspend.conf new file mode 100644 index 0000000..e7e9a15 --- /dev/null +++ b/etc/suspend.conf @@ -0,0 +1,8 @@ +resume device = /dev/sda1 +resume offset = 1702432 # value=`swap-offset /swapfile` +#image size = 2147483648 +#compute checksum = y +#compress = y +#encrypt = y +#RSA key file = /etc/suspend.key +#early writeout = y @@ -51,6 +51,7 @@ mount -t proc none /proc mount -t sysfs none /sys prep_dev +resume cryptsetup_do $HOME home mount_root $ROOT || rescue_shell @@ -1,4 +1,5 @@ #!/bin/zsh -x -find . \( ! -regex '.*/\..*' \) -print0 | sed "s|\./make||" | sed "s|\./README\.md||" | cpio --null -ov --format=newc | lzma -6 > /tmp/initramfs.cpio.lz +cp -a /etc/suspend.conf etc/ +find . \( ! -regex '.*/\..*' \) -print0 | sed "s|\./make||" | sed "s|\./README\.md||" | cpio --null -ov --format=newc | xz --check=crc32 > /tmp/initramfs.cpio.xz |