Skip to contentSkip to conversation

util/grub-install: Include raid5rec module for RAID 4 as well

PATCH In review Egor Ignatov 2 participants 2 messages Apr 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util/grub-install: Include raid5rec module for RAID 4 as well

RAID 4 requires the same recovery module as RAID 5. Extend the condition to cover both RAID levels.

---
 util/grub-install.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/grub-install.c +1 -1
index 7dc5657bb..060246589 100644
@@ -459,7 +459,7 @@ probe_mods (grub_disk_t disk)
       if (disk->dev->disk_raidname)
 	grub_install_push_module (disk->dev->disk_raidname (disk));
     }
-  if (raid_level == 5)
+  if (raid_level == 4 || raid_level == 5)
     grub_install_push_module ("raid5rec");
   if (raid_level == 6)
     grub_install_push_module ("raid6rec");
Signature · 7 lines
2.42.4


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel