fix clearing kernel attributes
fix clearing kernel attributes

Change-Id: Id353323d268835cbcc1fb13c8669cee420c8fb6a

BUG=chrome-os-partner:1046
TEST=manual

Make sure your chromeos install on the hard drive has 2 good kernel
partitions. Do:

sudo cgpt show /dev/sda

If partition 2 has success=1, do:

sudo dd if=/dev/sda2 of=/dev/sda4 bs=1M
sudo dd if=/dev/sda3 of=/dev/sda5 bs=1M
cgpt add -i 4 -S 1 -P 2

(if instead partition 4 has success=1, do:)

sudo dd if=/dev/sda4 of=/dev/sda2 bs=1M
sudo dd if=/dev/sda5 of=/dev/sda3 bs=1M
cgpt add -i 2 -S 1 -P 2

Reboot and do the following:

sudo cgpt show /dev/sda

If the partition you just marked active still has success=1
priority=2, the bug is fixed.  If it has success=0 priority=0, the bug
is still there.

Review URL: http://codereview.chromium.org/3324014

ccaapton/vboot_reference,marineam/seismograph,geekboxzone/mmallow_external_vboot_reference,geekboxzone/mmallow_external_vboot_reference,ccaapton/vboot_reference,ccaapton/vboot_reference,acorn-marvell/vboot_reference,ionave/seismograph,coreboot/vboot,acorn-marvell/vboot_reference,coreboot/vboot,marineam/seismograph,acorn-marvell/vboot_reference,marineam/seismograph,acorn-marvell/vboot_reference,geekboxzone/mmallow_external_vboot_reference,coreboot/vboot,ccaapton/vboot_reference,ionave/seismograph,geekboxzone/mmallow_external_vboot_reference,coreboot/vboot,ionave/seismograph,marineam/seismograph,geekboxzone/mmallow_external_vboot_reference,coreboot/vboot