Added a button for changing the number of active devices in a RAID 5 or 6 set, thanks to Diego Zuccato.
---- Changes since 1.480 ----
Added an option to the RAID 1 creation form to mark one of the disks as missing initially.
+Run the update-initramfs -u command after changing mdadm.conf, to sync it into any ramdisk for use at boot time.
push(@$lref, "ARRAY $_[0]->{'value'} level=$lvl devices=".
join(",", @devices));
&flush_file_lines();
+ &update_initramfs();
}
}
}
}
&flush_file_lines($config{'mdadm'});
+ &update_initramfs();
}
}
}
}
&flush_file_lines();
+ &update_initramfs();
}
}
}
}
&flush_file_lines();
+ &update_initramfs();
}
}
return undef;
}
+# update_initramfs()
+# If the update-initramfs command is installed, run it to update mdadm.conf
+# in the ramdisk
+sub update_initramfs
+{
+if (&has_command("update-initramfs")) {
+ &system_logged("update-initramfs -u >/dev/null 2>&1 </dev/null");
+ }
+}
+
1;