restore support for old persistence media
[live-boot-grml.git] / debian / patches / grml-specific / grml_version_file_hook.patch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 03_grml_version_file_hook.dpatch by <mika@grml.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Copy /etc/grml_version to initrd
6
7 @DPATCH@
8
9 Index: live-boot-grml/backend/initramfs-tools/live.hook
10 ===================================================================
11 --- live-boot-grml.orig/backend/initramfs-tools/live.hook       2014-03-08 13:18:27.443095163 +0100
12 +++ live-boot-grml/backend/initramfs-tools/live.hook    2014-03-08 13:18:27.439095633 +0100
13 @@ -16,6 +16,12 @@
14         fi
15  done
16  
17 +# Grml version information:
18 +if [ -r /etc/grml_version ]
19 +then
20 +       cp /etc/grml_version "${DESTDIR}"/etc
21 +fi
22 +
23  # Checking live-boot
24  if [ ! -e /bin/live-boot ]
25  then