grub2/grub2-zipl-setup-fix-btrfs-multipledev.patch

16 lines
441 B
Diff

Index: grub-2.02~beta2/util/s390x/zipl2grub.pl.in
===================================================================
--- grub-2.02~beta2.orig/util/s390x/zipl2grub.pl.in
+++ grub-2.02~beta2/util/s390x/zipl2grub.pl.in
@@ -361,6 +361,10 @@ while ( <IN> ) {
} else {
$v = "";
}
+ if ($k eq "GRUB_DEVICE" && $v !~ /^UUID/ && ! -e $v) {
+ s{root=\@$k\@}{}g;
+ next;
+ }
s{\@$k\@}{$v}g;
}
Info( 2, $_);