Merge branch 'vuplus_experimental' into FactoryTest
[vuplus_dvbapp] / lib / python / Components / Harddisk.py
index 51889d2..b13639e 100644 (file)
@@ -204,7 +204,7 @@ class Harddisk:
                return (res >> 8)
 
        def createPartition(self):
-               cmd = 'printf "0,\n;\n;\n;\ny\n" | sfdisk -f ' + self.disk_path
+               cmd = 'printf "8,\n;0,0\n;0,0\n;0,0\ny\n" | sfdisk -f -uS ' + self.disk_path
                res = system(cmd)
                return (res >> 8)
 
@@ -554,7 +554,7 @@ class HarddiskManager:
                                self.devices_scanned_on_init.append((blockdev, removable, is_cdrom, medium_found))
 
        def getAutofsMountpoint(self, device):
-               return "/media/%s/" % (device)
+               return "/autofs/%s/" % (device)
 
 
        def is_hard_mounted(self, device):