summaryrefslogtreecommitdiff
path: root/scripts/create
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-08-08 15:39:55 +0200
committerpks <pks@pks.rocks>2021-08-08 15:39:55 +0200
commit519e9158e8e0860b99104868643dfd44a8fd8a4b (patch)
treed400f839c485f09e78455f57a81c08a1efa6a08a /scripts/create
parentf3d725b0eddb643016a5cda9ba5eea62fed0d96f (diff)
overhaulHEADmaster
Diffstat (limited to 'scripts/create')
-rwxr-xr-xscripts/create9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/create b/scripts/create
new file mode 100755
index 0000000..567902a
--- /dev/null
+++ b/scripts/create
@@ -0,0 +1,9 @@
+#!/bin/zsh -x
+
+cp -a /etc/suspend.conf etc/
+find . \( ! -regex '.*/\..*' \) -print0 \
+ | sed "s|\./scripts||" \
+ | sed "s|\./scripts/create||" \
+ | sed "s|\./scripts/install||" \
+ | sed "s|\./README\.md||" \
+ | cpio --null -ov --format=newc | xz --check=crc32 > /tmp/initramfs.cpio.xz