* 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:
parent
e3c8cd3719
commit
507736c87c
3 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue