summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-03-06 10:14:19 +0100
committerPatrick Simianer <p@simianer.de>2016-03-06 10:14:19 +0100
commit13d38a0a0f288f17b126fbb271058eb9511c4f87 (patch)
tree36c4d93fb6891e4a0af7ac437090eb8bf8646cb2
parent2fd7bbcf706134a94e9aa8f8031ce4b92a175065 (diff)
resume and xz compression
-rwxr-xr-xbin/cryptsetupbin0 -> 1524840 bytes
-rwxr-xr-xbin/resumebin0 -> 1317856 bytes
-rw-r--r--etc/suspend.conf8
-rwxr-xr-xinit1
-rwxr-xr-xmake3
5 files changed, 11 insertions, 1 deletions
diff --git a/bin/cryptsetup b/bin/cryptsetup
new file mode 100755
index 0000000..aae4b30
--- /dev/null
+++ b/bin/cryptsetup
Binary files differ
diff --git a/bin/resume b/bin/resume
new file mode 100755
index 0000000..977924b
--- /dev/null
+++ b/bin/resume
Binary files 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