move Grml-specific patches to a separate subfolder
[live-boot-grml.git] / debian / patches / grml-specific / grml_version_file_hook.patch
diff --git a/debian/patches/grml-specific/grml_version_file_hook.patch b/debian/patches/grml-specific/grml_version_file_hook.patch
new file mode 100644 (file)
index 0000000..7aa4f24
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_grml_version_file_hook.dpatch by <mika@grml.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Copy /etc/grml_version to initrd
+
+@DPATCH@
+
+Index: live-boot-grml/backend/initramfs-tools/live.hook
+===================================================================
+--- live-boot-grml.orig/backend/initramfs-tools/live.hook      2014-03-08 13:18:27.443095163 +0100
++++ live-boot-grml/backend/initramfs-tools/live.hook   2014-03-08 13:18:27.439095633 +0100
+@@ -16,6 +16,12 @@
+       fi
+ done
++# Grml version information:
++if [ -r /etc/grml_version ]
++then
++       cp /etc/grml_version "${DESTDIR}"/etc
++fi
++
+ # Checking live-boot
+ if [ ! -e /bin/live-boot ]
+ then