return 0;
}
-struct hw_destination* hw_make_destination(struct hw* hw, int part_type, struct hw_disk** disks, int disable_swap) {
+struct hw_destination* hw_make_destination(struct hw* hw, int part_type, struct hw_disk** disks,
+ int disable_swap, int filesystem) {
struct hw_destination* dest = malloc(sizeof(*dest));
+ // Assign filesystem
+ dest->filesystem = filesystem;
+
if (part_type == HW_PART_TYPE_NORMAL) {
dest->disk1 = *disks;
dest->disk2 = NULL;
if (r)
return NULL;
- // Set default filesystem
- dest->filesystem = HW_FS_DEFAULT;
-
return dest;
}