commit 4ace11261fb2edde7aa1bd2251ecba1b12a65219
Author: Marko Saukko <[email protected]>
Date: Fri Oct 29 10:02:30 2010 +0300
Use proper fs_types for partitions.
diff --git a/mic/appcreate/partitionedfs.py b/mic/appcreate/partitionedfs.py
index f9f6fc0..a642250 100644
--- a/mic/appcreate/partitionedfs.py
+++ b/mic/appcreate/partitionedfs.py
@@ -115,9 +115,19 @@ class PartitionedMount(Mount):
"%dM" % p['start'], "%dM" % (p['start'] +
d['extended'])],
stdout = dev_null, stderr = dev_null)
+ if p['fstype'] == "swap":
+ parted_fs_type = "linux-swap"
+ elif p['fstype'] == "vfat":
+ parted_fs_type = "fat32"
+ elif p['fstype'] == "msdos":
+ parted_fs_type = "fat16"
+ else:
+ # Type for ext2/ext3/ext4/btrfs
+ parted_fs_type = "ext2"
+
logging.debug("Add %s part at %d of size %d" % (p['type'],
p['start'], p['size']))
rc = subprocess.call([self.parted, "-s", d['disk'].device,
"mkpart",
- p['type'], "%dM" % p['start'], "%dM" %
(p['start']+p['size'])],
+ p['type'], parted_fs_type, "%dM" %
p['start'], "%dM" % (p['start']+p['size'])],
stdout = dev_null, stderr = dev_null)
if p['boot']:
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev