summaryrefslogtreecommitdiffstats
path: root/modules.d/copy-initrd/module-setup.sh
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-20 12:20:32 +0200
committerSimon Rettberg2022-05-20 12:20:32 +0200
commit38169f5b1b3343d2867a9f01a7335a4ae14e58bb (patch)
tree2109c2ca8529ca7dc998a18c5f9ea9eed1b927ce /modules.d/copy-initrd/module-setup.sh
parentdnbd3: workqueue branch has been merged into master (diff)
downloadsystemd-init-38169f5b1b3343d2867a9f01a7335a4ae14e58bb.tar.gz
systemd-init-38169f5b1b3343d2867a9f01a7335a4ae14e58bb.tar.xz
systemd-init-38169f5b1b3343d2867a9f01a7335a4ae14e58bb.zip
Split initramfs copying logic into new module, enable in debug mode only
Diffstat (limited to 'modules.d/copy-initrd/module-setup.sh')
-rwxr-xr-xmodules.d/copy-initrd/module-setup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules.d/copy-initrd/module-setup.sh b/modules.d/copy-initrd/module-setup.sh
new file mode 100755
index 00000000..050a84e3
--- /dev/null
+++ b/modules.d/copy-initrd/module-setup.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+check() {
+ # only if requested
+ return 255
+}
+depends() {
+ echo base bash
+}
+install() {
+ inst_hook pre-pivot 00 \
+ "$moddir/hooks/copy-initramfs-into-newroot.sh"
+}