try deleting 4 primary partitions before creating new partition table
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 13 Jul 2009 09:39:24 +0000 (11:39 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 13 Jul 2009 09:39:24 +0000 (11:39 +0200)
lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py

index 6d404cf..6292a46 100644 (file)
@@ -494,7 +494,7 @@ class NFIDownload(Screen):
                        self.taskstring = ""
                        self.container.appClosed.append(self.fdisk_finished)
                        self.container.execute("fdisk " + self.stickdevice + "/disc")
                        self.taskstring = ""
                        self.container.appClosed.append(self.fdisk_finished)
                        self.container.execute("fdisk " + self.stickdevice + "/disc")
-                       self.container.write("d\nn\np\n1\n\n\nt\n6\nw\n")
+                       self.container.write("d\n4\nd\n3\nd\n2\nd\nn\np\n1\n\n\nt\n6\nw\n")
                        self.delayTimer = eTimer()
                        self.delayTimer.callback.append(self.progress_increment)
                        self.delayTimer.start(105, False)
                        self.delayTimer = eTimer()
                        self.delayTimer.callback.append(self.progress_increment)
                        self.delayTimer.start(105, False)