Merge lp:~pwlars/lava-dispatcher/fix-824622 into lp:lava-dispatcher

Proposed by Paul Larson
Status: Merged
Merged at revision: 87
Proposed branch: lp:~pwlars/lava-dispatcher/fix-824622
Merge into: lp:lava-dispatcher
Diff against target: 19 lines (+9/-0)
1 file modified
lava_dispatcher/actions/deploy.py (+9/-0)
To merge this branch: bzr merge lp:~pwlars/lava-dispatcher/fix-824622
Reviewer Review Type Date Requested Status
Linaro Validation Team Pending
Review via email: mp+71228@code.launchpad.net

Description of the change

Make flash-kernel in the test partition do nothing

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-11 16:02:31 +0000
4@@ -170,6 +170,15 @@
5 client.run_shell_command(
6 'echo linaro > /mnt/root/etc/hostname',
7 response = MASTER_STR)
8+ #DO NOT REMOVE - diverting flash-kernel and linking it to /bin/true
9+ #prevents a serious problem where packages getting installed that
10+ #call flash-kernel can update the kernel on the master image
11+ client.run_shell_command(
12+ 'chroot /mnt/root dpkg-divert --local /usr/sbin/flash-kernel',
13+ response = MASTER_STR)
14+ client.run_shell_command(
15+ 'chroot /mnt/root ln -sf /bin/true /usr/sbin/flash-kernel',
16+ response = MASTER_STR)
17 client.run_shell_command(
18 'umount /mnt/root',
19 response = MASTER_STR)

Subscribers

People subscribed via source and target branches