installer: Destroy RAID superblocks on single disk installations

This commit is contained in:
Michael Tremer
2014-08-21 16:43:45 +02:00
parent 0e491487e9
commit d78fffa049
3 changed files with 6 additions and 1 deletions

View File

@@ -822,7 +822,7 @@ int hw_umount_filesystems(struct hw_destination* dest, const char* prefix) {
return 0;
}
static int hw_destroy_raid_superblocks(const struct hw_destination* dest, const char* output) {
int hw_destroy_raid_superblocks(const struct hw_destination* dest, const char* output) {
char cmd[STRING_SIZE];
hw_stop_all_raid_arrays(output);

View File

@@ -120,6 +120,7 @@ int hw_create_filesystems(struct hw_destination* dest, const char* output);
int hw_mount_filesystems(struct hw_destination* dest, const char* prefix);
int hw_umount_filesystems(struct hw_destination* dest, const char* prefix);
int hw_destroy_raid_superblocks(const struct hw_destination* dest, const char* output);
int hw_setup_raid(struct hw_destination* dest, const char* output);
int hw_stop_all_raid_arrays(const char* output);

View File

@@ -540,6 +540,10 @@ int main(int argc, char *argv[]) {
}
newtPopWindow();
} else {
// We will have to destroy all RAID setups that may have
// been on the devices that we want to use now.
hw_destroy_raid_superblocks(destination, logfile);
}
// Execute the partitioning...