mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
installer: Destroy RAID superblocks on single disk installations
This commit is contained in:
@@ -822,7 +822,7 @@ int hw_umount_filesystems(struct hw_destination* dest, const char* prefix) {
|
|||||||
return 0;
|
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];
|
char cmd[STRING_SIZE];
|
||||||
|
|
||||||
hw_stop_all_raid_arrays(output);
|
hw_stop_all_raid_arrays(output);
|
||||||
|
|||||||
@@ -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_mount_filesystems(struct hw_destination* dest, const char* prefix);
|
||||||
int hw_umount_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_setup_raid(struct hw_destination* dest, const char* output);
|
||||||
int hw_stop_all_raid_arrays(const char* output);
|
int hw_stop_all_raid_arrays(const char* output);
|
||||||
|
|
||||||
|
|||||||
@@ -540,6 +540,10 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
newtPopWindow();
|
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...
|
// Execute the partitioning...
|
||||||
|
|||||||
Reference in New Issue
Block a user