mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
* util/grub-mkconfig_lib.in (uses_abstraction): New function.
* util/grub.d/10_linux.in: Use it to check for LVM, so that LVM-on-RAID is handled correctly.
This commit is contained in:
1 parent
e3c8cd3719
commit
507736c87c
3 files changed
+19
-1
No files matched your search
@@ -190,3 +190,15 @@ version_find_latest ()
|
||||
gettext_quoted () {
|
||||
$gettext "$@" | sed "s/'/'\\\\''/g"
|
||||
}
|
||||
|
||||
uses_abstraction () {
|
||||
device=$1
|
||||
|
||||
abstraction="`${grub_probe} --device ${device} --target=abstraction`"
|
||||
for module in ${abstraction}; do
|
||||
if test "x${module}" = "x$2"; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
Reference in new issue
Block a user