From b484d6d03914c83c25feaca343d3d651a389d7f6 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 28 Nov 2012 16:38:22 +0100 Subject: [PATCH] allow the use of multiple initramfs hooks and scripts again --- debian/patches/40_support_multiple_hooks.patch | 20 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/40_support_multiple_hooks.patch diff --git a/debian/patches/40_support_multiple_hooks.patch b/debian/patches/40_support_multiple_hooks.patch new file mode 100644 index 0000000..36f72f2 --- /dev/null +++ b/debian/patches/40_support_multiple_hooks.patch @@ -0,0 +1,20 @@ +Index: live-boot-grml/Makefile +=================================================================== +--- live-boot-grml.orig/Makefile 2012-11-28 16:30:56.243755796 +0100 ++++ live-boot-grml/Makefile 2012-11-28 16:36:50.614711051 +0100 +@@ -47,9 +47,13 @@ + + # Installing executables + mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks +- cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live ++ for f in backends/initramfs-tools/*.hook; do \ ++ cp $${f} $(DESTDIR)/usr/share/initramfs-tools/hooks/$$(basename $${f} .hook); \ ++ done + mkdir -p $(DESTDIR)/usr/share/initramfs-tools/scripts +- cp backends/initramfs-tools/live.script $(DESTDIR)/usr/share/initramfs-tools/scripts/live ++ for f in backends/initramfs-tools/*.script; do \ ++ cp $${f} $(DESTDIR)/usr/share/initramfs-tools/scripts/$$(basename $${f} .script); \ ++ done + + # Installing docs + mkdir -p $(DESTDIR)/usr/share/doc/live-boot-grml diff --git a/debian/patches/series b/debian/patches/series index 2bb89a1..ed51e7e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -17,3 +17,4 @@ 36_support_dhcp_bootoption.patch 37_fix_legacy_persistence_handling.patch 39_persistence_with_forensic.patch +40_support_multiple_hooks.patch -- 2.1.4