]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/install+setup/install/main.c
installer: Add support for RAID.
[people/pmueller/ipfire-2.x.git] / src / install+setup / install / main.c
index 645bee37d741f2f0694db2904e3dc343c6c5bb24..ebcc0f594f3032c01c7d34bf65b3bcfb5e33219a 100644 (file)
@@ -239,7 +239,8 @@ int main(int argc, char *argv[]) {
 
        // Load common modules
        mysystem("/sbin/modprobe vfat"); // USB key
-       
+       hw_stop_all_raid_arrays();
+
        /* German is the default */
        for (choice = 0; langnames[choice]; choice++)
        {
@@ -454,6 +455,19 @@ int main(int argc, char *argv[]) {
                        goto EXIT;
        }
 
+       // Setting up RAID if needed.
+       if (destination->is_raid) {
+               statuswindow(60, 4, title, ctr[TR_BUILDING_RAID]);
+
+               rc = hw_setup_raid(destination);
+               if (rc) {
+                       errorbox(ctr[TR_UNABLE_TO_BUILD_RAID]);
+                       goto EXIT;
+               }
+
+               newtPopWindow();
+       }
+
        // Execute the partitioning...
        statuswindow(60, 4, title, ctr[TR_PARTITIONING_DISK]);
 
@@ -619,6 +633,8 @@ EXIT:
                free(destination);
        }
 
+       hw_stop_all_raid_arrays();
+
        if (selected_disks)
                hw_free_disks(selected_disks);