=== modified file 'lava_dispatcher/actions/deploy.py'
@@ -173,6 +173,15 @@
client.run_shell_command(
'echo linaro > /mnt/root/etc/hostname',
response = MASTER_STR)
+ #DO NOT REMOVE - diverting flash-kernel and linking it to /bin/true
+ #prevents a serious problem where packages getting installed that
+ #call flash-kernel can update the kernel on the master image
+ client.run_shell_command(
+ 'chroot /mnt/root dpkg-divert --local /usr/sbin/flash-kernel',
+ response = MASTER_STR)
+ client.run_shell_command(
+ 'chroot /mnt/root ln -sf /bin/true /usr/sbin/flash-kernel',
+ response = MASTER_STR)
client.run_shell_command(
'umount /mnt/root',
response = MASTER_STR)