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 ################################################################################
11 bindir=${exec_prefix}/bin
12 libdir=${exec_prefix}/lib
13 . ${libdir}/grub/grub-mkconfig_lib
15 list=$(for i in /boot/grml/*.iso ; do
16 if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
19 if [ -r /etc/default/grml-rescueboot ] ; then
20 . /etc/default/grml-rescueboot
23 for grmliso in $list ; do
24 rel_dirname="$(make_system_path_relative_to_its_root $(dirname $grmliso))"
25 grml="$(basename $grmliso)"
27 echo "Found Grml ISO image: $grmliso" >&2
28 title="Grml Rescue System ($grml)"
31 menuentry "${title}" {
32 iso_path="${rel_dirname}/$grml $CUSTOM_BOOTOPTIONS"
34 loopback loop "${rel_dirname}/$grml"
36 configfile /boot/grub/loopback.cfg
41 ## END OF FILE #################################################################