On some systems /proc/mdstat doesn't exist until the first RAID device is created https://github.com/webmin/webmin/issues/1736

This commit is contained in:
Jamie Cameron
2025-01-25 10:04:35 -08:00
parent e7d2dc8b67
commit ff065a5647
2 changed files with 0 additions and 4 deletions

View File

@ -4,9 +4,6 @@
require './raid-lib.pl';
# Check if raid is installed
if (!-r $config{'mdstat'}) {
&error_exit(&text('index_emdstat', "<tt>$config{'mdstat'}</tt>"));
}
if (&has_command("mdadm")) {
# Using mdadm commands
$raid_mode = "mdadm";

View File

@ -2,7 +2,6 @@ index_title=Linux RAID
index_none=No RAID devices configured.
index_add=Create RAID device of level:
index_return=RAID devices
index_emdstat=The kernel RAID status file $1 does not exist on your system. Your kernel probably does not support RAID.
index_eprogs=Neither the RAID tools or MDADM packages are installed on your system.
index_mdadm=Using MDADM version $1
index_raidtools=Using RaidTools