Image got in a broken state after update -> rollback -> update (wrong kernel)
Bug #1474125 reported by
Ricardo Salveti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
High
|
Unassigned | ||
15.04 |
Fix Released
|
Critical
|
Sergio Schvezov |
Bug Description
Testing with stable image, but the bug should also show up with rolling.
Flashed alpha 3 (kernel 3.19.0-18-generic), updated and booted to image 4 (3.19.0-
$ sudo ubuntu-device-flash --revision 3 core 15.04 --channel alpha --oem beagleblack --enable-ssh --developer-mode --install webdm --output beagle.img
Related branches
lp://staging/~sergiusens/snappy/noUselessUpdate
- Michael Vogt (community): Approve
-
Diff: 50 lines (+30/-6)1 file modifiedsnappy/systemimage.go (+30/-6)
lp://staging/~mvo/snappy/noUselessUpdateTests-trunk
- Michael Vogt (community): Approve
- Sergio Schvezov: Approve
-
Diff: 202 lines (+129/-9)3 files modifiedpartition/partition.go (+14/-1)
snappy/systemimage.go (+43/-6)
snappy/systemimage_test.go (+72/-2)
As discussed and shown, the problem is that SyncBootloaderFiles is run regardless and the system-image-cli may not download any delta as it is already on the latest according to it's RunInOther.
I have a potential non invasive fix in mind which I will apply tonight.