summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-09-25 10:14:45 +0000
committerOlivier Blin <oblin@mandriva.com>2008-09-25 10:14:45 +0000
commit48acf485fcea76de3cd5907539f6ab936b4ff53c (patch)
tree81c368a8509ae708aacb23bafff257607c1dca00 /draklive
parent189716d24f6d544bf91c7df4220e786abf256067 (diff)
downloaddrakiso-48acf485fcea76de3cd5907539f6ab936b4ff53c.tar
drakiso-48acf485fcea76de3cd5907539f6ab936b4ff53c.tar.gz
drakiso-48acf485fcea76de3cd5907539f6ab936b4ff53c.tar.bz2
drakiso-48acf485fcea76de3cd5907539f6ab936b4ff53c.tar.xz
drakiso-48acf485fcea76de3cd5907539f6ab936b4ff53c.zip
use fs::type to find partition code (for vfat replicator masters)
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive4
1 files changed, 3 insertions, 1 deletions
diff --git a/draklive b/draklive
index d75db14..3659c17 100755
--- a/draklive
+++ b/draklive
@@ -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