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 ################################################################################
13 bindir=${exec_prefix}/bin
14 libdir=${exec_prefix}/lib
15 . ${libdir}/grub/grub-mkconfig_lib
17 # default unless configured otherwise:
18 ISO_LOCATION="/boot/grml"
20 if [ -r /etc/default/grml-rescueboot ] ; then
21 . /etc/default/grml-rescueboot
24 list=$(for i in "${ISO_LOCATION}"/*.iso ; do
25 if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
28 for grmliso in $list ; do
29 rel_dirname="$(make_system_path_relative_to_its_root $(dirname $grmliso))"
30 grml="$(basename $grmliso)"
32 echo "Found Grml ISO image: $grmliso" >&2
33 title="Grml Rescue System ($grml)"
36 menuentry "${title}" {
37 iso_path="${rel_dirname}/$grml $CUSTOM_BOOTOPTIONS"
39 loopback loop "${rel_dirname}/$grml"
41 configfile /boot/grub/loopback.cfg
46 ## END OF FILE #################################################################