diff options
-rwxr-xr-x | draklive | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1310,6 +1310,8 @@ sub allocate_master { device_allocate_file($dest, $disk_size); #- FIXME: use parted? + require fs::type; + my $pt_type = sprintf('%x', (fs::type::fs_type2subpart($fs))->{pt_type}); open(my $fdisk, "| fdisk -C $cylinders -S $sectors_per_track -H $heads $dest"); print $fdisk <<EOF; o @@ -1319,7 +1321,7 @@ p t -83 +$pt_type a 1 w |