Copy /etc/grml_version to initrd 1.136.3-2_grml.02
authorMichael Prokop <devnull@localhost>
Sat, 16 Aug 2008 09:08:12 +0000 (11:08 +0200)
committerMichael Prokop <devnull@localhost>
Sat, 16 Aug 2008 09:08:12 +0000 (11:08 +0200)
debian/changelog
debian/patches/00list
debian/patches/06_grml_version_file.dpatch [new file with mode: 0644]

index 925b6f1..e2053b0 100644 (file)
@@ -2,8 +2,9 @@ live-initramfs (1.136.3-2~grml.02) unstable; urgency=low
 
   * Resync with Debian's current Git version [20080816,
     git commit 0c14aa2e625bc1bb43947f2c0d04b876900cd51e].
-    Get rid of debian/patches/05_get_rid_of_wrong_debug_message.dpatch
+  * Get rid of debian/patches/05_get_rid_of_wrong_debug_message.dpatch
     and resync other patches as well.
+  * Copy /etc/grml_version to initrd. 
 
  -- Michael Prokop <mika@grml.org>  Sat, 16 Aug 2008 10:25:54 +0200
 
index b99df49..43774ce 100644 (file)
@@ -3,3 +3,4 @@
 03_fix_cow_tmpfs_mount.dpatch
 04_get_rid_of_utillinux-mountbinary.dpatch
 05_boot_failure_message_grml.dpatch
+06_grml_version_file.dpatch
diff --git a/debian/patches/06_grml_version_file.dpatch b/debian/patches/06_grml_version_file.dpatch
new file mode 100644 (file)
index 0000000..50bc2e9
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 06_grml_version_file.dpatch.dpatch by  <mika@grml.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Copy /etc/grml_version to initrd
+
+@DPATCH@
+
+diff -r 9d601dc7dc9f hooks/live
+--- a/hooks/live       Sat Aug 16 11:03:31 2008 +0200
++++ b/hooks/live       Sat Aug 16 11:06:36 2008 +0200
+@@ -33,6 +33,11 @@
+       mkdir -p "${DESTDIR}"/etc
+       cp /etc/live.conf "${DESTDIR}"/etc
++fi
++
++if [ -r /etc/grml_version ]
++then
++      cp /etc/grml_version "${DESTDIR}"/etc
+ fi
+ # Directories