From 13d38a0a0f288f17b126fbb271058eb9511c4f87 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 6 Mar 2016 10:14:19 +0100 Subject: resume and xz compression --- bin/cryptsetup | Bin 0 -> 1524840 bytes bin/resume | Bin 0 -> 1317856 bytes etc/suspend.conf | 8 ++++++++ init | 1 + make | 3 ++- 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 bin/cryptsetup create mode 100755 bin/resume create mode 100644 etc/suspend.conf diff --git a/bin/cryptsetup b/bin/cryptsetup new file mode 100755 index 0000000..aae4b30 Binary files /dev/null and b/bin/cryptsetup differ diff --git a/bin/resume b/bin/resume new file mode 100755 index 0000000..977924b Binary files /dev/null and b/bin/resume differ 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 diff --git a/init b/init index 01774c6..8c1f7d0 100755 --- a/init +++ b/init @@ -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 diff --git a/make b/make index 612b32c..f1c3dab 100755 --- a/make +++ b/make @@ -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 -- cgit v1.2.3