From 6dcfcb3291f885d9c9229aac985d69f6c205131d Mon Sep 17 00:00:00 2001 From: fzielcke Date: Thu, 6 Aug 2009 07:05:48 +0000 Subject: [PATCH] 2009-08-06 Felix Zielcke * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix handling of multiple abstraction modules. --- ChangeLog | 5 +++++ util/grub-mkconfig_lib.in | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 44f14a0d4..68134df3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-06 Felix Zielcke + + * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix + handling of multiple abstraction modules. + 2009-08-04 Robert Millan Fix a bug resulting in black screen when loading Linux using a diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in index 9afbd3b1f..d27b72ea1 100644 --- a/util/grub-mkconfig_lib.in +++ b/util/grub-mkconfig_lib.in @@ -136,9 +136,9 @@ prepare_grub_to_access_device () # Abstraction modules aren't auto-loaded. abstraction="`${grub_probe} --device ${device} --target=abstraction`" - if [ "x${abstraction}" = "x" ] ; then : ; else - echo "insmod ${abstraction}" - fi + for module in ${abstraction} ; do + echo "insmod ${module}" + done # If there's a filesystem UUID that GRUB is capable of identifying, use it; # otherwise set root as per value in device.map.