From 519e9158e8e0860b99104868643dfd44a8fd8a4b Mon Sep 17 00:00:00 2001 From: pks Date: Sun, 8 Aug 2021 15:39:55 +0200 Subject: overhaul --- scripts/create | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/create (limited to 'scripts/create') 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 -- cgit v1.2.3