debian/control: make package arch all, bump standards-version and add myself as uploader.
[grml-rescueboot.git] / 42_grml
1 #! /bin/sh -e
2 # Filename:      42_grml
3 # Purpose:       grub-mkconfig helper script for Grml rescue systems
4 # Authors:       grml-team (grml.org), (c) Andreas Gredler <jimmy@grml.org>, Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 ################################################################################
8
9 prefix=/usr
10 exec_prefix=${prefix}
11 bindir=${exec_prefix}/bin
12 libdir=${exec_prefix}/lib
13 . ${libdir}/grub/grub-mkconfig_lib
14
15 list=$(for i in /boot/grml/*.iso ; do
16         if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
17       done)
18
19 for grmliso in $list ; do
20   rel_dirname="$(make_system_path_relative_to_its_root $(dirname $grmliso))"
21   grml="$(basename $grmliso)"
22
23   echo "Found Grml ISO image: $grmliso" >&2
24   title="Grml Rescue System ($grml)"
25
26   cat << EOF
27     menuentry "${title}" {
28     iso_path=${rel_dirname}/$grml
29     export iso_path
30     loopback loop \$iso_path
31     set root=(loop)
32     configfile /boot/grub/loopback.cfg
33     }
34 EOF
35 done
36
37 ## END OF FILE #################################################################