diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 260: umount 'sdcard' label partition before format

Message ID 20120321054911.18965.5245.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Spring Zhang March 21, 2012, 5:49 a.m. UTC
Merge authors:
  Spring Zhang (qzhang)
Related merge proposals:
  https://code.launchpad.net/~qzhang/lava-dispatcher/fix-sdcard-format/+merge/98558
  proposed by: Spring Zhang (qzhang)
------------------------------------------------------------
revno: 260 [merge]
committer: Spring Zhang <spring.zhang@linaro.org>
branch nick: fix-959957
timestamp: Wed 2012-03-21 13:43:15 +0800
message:
  umount 'sdcard' label partition before format
modified:
  lava_dispatcher/client/master.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/client/master.py'
--- lava_dispatcher/client/master.py	2012-03-19 22:20:07 +0000
+++ lava_dispatcher/client/master.py	2012-03-20 06:59:13 +0000
@@ -199,6 +199,7 @@ 
 def _deploy_linaro_android_data(session, datatbz2):
     ##consider the compatiblity, here use the existed sdcard partition
     data_label = 'sdcard'
+    session.run('umount /dev/disk/by-label/%s' % data_label, failok=True)
     session.run('mkfs.ext4 -q /dev/disk/by-label/%s -L %s' % (data_label, data_label))
     session.run('udevadm trigger')
     session.run('mkdir -p /mnt/lava/data')