Merge lp:~qzhang/lava-dispatcher/fix-bug-821385 into lp:lava-dispatcher

Proposed by Spring Zhang
Status: Merged
Merged at revision: 86
Proposed branch: lp:~qzhang/lava-dispatcher/fix-bug-821385
Merge into: lp:lava-dispatcher
Diff against target: 23 lines (+6/-0)
1 file modified
lava_dispatcher/actions/deploy.py (+6/-0)
To merge this branch: bzr merge lp:~qzhang/lava-dispatcher/fix-bug-821385
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+72040@code.launchpad.net

Description of the change

fix bug #821385: auto-mount prevent formating on testboot and testrootfs when image deployment

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_dispatcher/actions/deploy.py'
2--- lava_dispatcher/actions/deploy.py 2011-08-04 07:19:53 +0000
3+++ lava_dispatcher/actions/deploy.py 2011-08-18 13:49:43 +0000
4@@ -153,6 +153,9 @@
5 client = self.client
6 print "Deploying linaro image"
7 client.run_shell_command(
8+ 'umount /dev/disk/by-label/testrootfs',
9+ response = MASTER_STR)
10+ client.run_shell_command(
11 'mkfs.ext3 -q /dev/disk/by-label/testrootfs -L testrootfs',
12 response = MASTER_STR)
13 client.run_shell_command(
14@@ -177,6 +180,9 @@
15 def deploy_linaro_bootfs(self, bootfs):
16 client = self.client
17 client.run_shell_command(
18+ 'umount /dev/disk/by-label/testboot',
19+ response = MASTER_STR)
20+ client.run_shell_command(
21 'mkfs.vfat /dev/disk/by-label/testboot -n testboot',
22 response = MASTER_STR)
23 client.run_shell_command(

Subscribers

People subscribed via source and target branches