Probe the device where the Grml ISO is being stored using ${grub_probe} instead of...
[grml-rescueboot.git] / 42_grml
diff --git a/42_grml b/42_grml
index 69f4b96..6913346 100755 (executable)
--- a/42_grml
+++ b/42_grml
@@ -34,7 +34,7 @@ for grmliso in $list ; do
 
   cat << EOF
 menuentry "${title}" {
-$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/        /")
+$(prepare_grub_to_access_device $(${grub_probe} -t device ${grmliso}) | sed -e "s/^/        /")
         iso_path="${rel_dirname}/${grml}"
         export iso_path
         kernelopts="$CUSTOM_BOOTOPTIONS"