The branch, dharma-pre has been updated
via 0dd54cdbb9c6e5986492ef893326dc67d01a22e3 (commit)
from 0bf6235d5ea52b0e9fb7337c43e254bbba341b13 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=0dd54cdbb9c6e5986492ef893326dc67d01a22e3
commit 0dd54cdbb9c6e5986492ef893326dc67d01a22e3
Author: amet <a...@nospam>
Date: Fri Nov 5 19:21:52 2010 +0400
[script.bootable.disk.wizard] -v0.9.7
- changes in __partitionFormatDisk
diff --git a/script.bootable.disk.wizard/addon.xml
b/script.bootable.disk.wizard/addon.xml
index dc95954..ff6d328 100644
--- a/script.bootable.disk.wizard/addon.xml
+++ b/script.bootable.disk.wizard/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.bootable.disk.wizard"
name="Bootable Disk Wizard"
- version="0.9.6"
+ version="0.9.7"
provider-name="Team XBMC">
<requires>
<import addon="xbmc.python" version="1.0"/>
diff --git a/script.bootable.disk.wizard/resources/lib/wizardCore.py
b/script.bootable.disk.wizard/resources/lib/wizardCore.py
index 92b7fb8..e70cccc 100644
--- a/script.bootable.disk.wizard/resources/lib/wizardCore.py
+++ b/script.bootable.disk.wizard/resources/lib/wizardCore.py
@@ -320,30 +320,54 @@ class WizardCore:
return True
def __partitionFormatDisk(self, aDevice, aPassword):
- aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' mklabel msdos'
+ aCmd = 'echo "' + aPassword + '" | sudo -S dd if=/dev/zero of='
+ aDevice + " bs=512 count=2"
stdErr, stdOut, retValue = self.__runSilent(aCmd)
if retValue >0:
self.__printDebugLine("Error partitioning (1): " +
stdOut)
return False
- aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' mkpart primary fat32 0.0 100%'
+ aCmd = 'sync'
stdErr, stdOut, retValue = self.__runSilent(aCmd)
if retValue >0:
self.__printDebugLine("Error partitioning (2): " +
stdOut)
return False
- aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' set 1 boot on'
+ aCmd = 'echo "' + aPassword + '" | sudo -S partprobe ' + aDevice
stdErr, stdOut, retValue = self.__runSilent(aCmd)
if retValue >0:
self.__printDebugLine("Error partitioning (3): " +
stdOut)
return False
- aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' set 1 lba off'
+ aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' mklabel msdos'
stdErr, stdOut, retValue = self.__runSilent(aCmd)
if retValue >0:
self.__printDebugLine("Error partitioning (4): " +
stdOut)
return False
+ aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' mkpart primary fat32 0.0 100%'
+ stdErr, stdOut, retValue = self.__runSilent(aCmd)
+ if retValue >0:
+ self.__printDebugLine("Error partitioning (5): " +
stdOut)
+ return False
+
+ aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' set 1 boot on'
+ stdErr, stdOut, retValue = self.__runSilent(aCmd)
+ if retValue >0:
+ self.__printDebugLine("Error partitioning (6): " +
stdOut)
+ return False
+
+ aCmd = 'echo "' + aPassword + '" | sudo -S parted -s ' +
aDevice + ' set 1 lba off'
+ stdErr, stdOut, retValue = self.__runSilent(aCmd)
+ if retValue >0:
+ self.__printDebugLine("Error partitioning (7): " +
stdOut)
+ return False
+
+ aCmd = 'echo "' + aPassword + '" | sudo -S partprobe ' + aDevice
+ stdErr, stdOut, retValue = self.__runSilent(aCmd)
+ if retValue >0:
+ self.__printDebugLine("Error partitioning (8): " +
stdOut)
+ return False
+
aLabel = "XBMCLive_" + str(random.randint(0, 99))
aCmd = "echo " + aPassword + " | sudo -S mkfs.vfat -I -F 32 -n
" + aLabel + " " + aDevice + "1"
stdErr, stdOut, retValue = self.__runSilent(aCmd)
-----------------------------------------------------------------------
Summary of changes:
script.bootable.disk.wizard/addon.xml | 2 +-
.../resources/lib/wizardCore.py | 32 +++++++++++++++++--
2 files changed, 29 insertions(+), 5 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons