snappy on grub systems should detect a broken boot and fall back to the other root partition on power cycling.

Bug #1412737 reported by James Hunt on 2015-01-20
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Critical
James Hunt

Bug Description

The snappy boot logic currently detects if a boot is bad, but does not automatically trigger a reboot.

- on u-boot systems, such a reboot will trigger the bootloader to revert to the "other" roots partition. Code is in-place such that a manual power cycle will correctly revert to the other partition.

- on grub systems, logic needs to be introduced to switch the to the other rootfs partition.

Related branches

Alexander Sack (asac) wrote :

i would suggest to split the auto reboot if fail part and the grub doesnt even have the logic part of this bug...

the grub one surely is critical as it means we dont even have the tx property in place.

Changed in snappy-ubuntu:
assignee: nobody → Steve Langasek (vorlon)
Alexander Sack (asac) wrote :

assigning the slangasek soo he can help find owner and triage this etc.

Changed in snappy-ubuntu:
status: New → Confirmed
Steve Langasek (vorlon) wrote :

Automatically detecting a failed boot and triggering a reboot is not a priority.

"and the grub doesnt even have the logic part of this bug..."

James, what is the status of this?

Changed in snappy-ubuntu:
assignee: Steve Langasek (vorlon) → nobody
assignee: nobody → James Hunt (jamesodhunt)
James Hunt (jamesodhunt) on 2015-02-11
summary: - snappy should automatically detect a broken boot and trigger a reboot to
- other root partition
+ snappy on grub systems should detect a broken boot and fall back to the
+ other root partition on power cycling.
James Hunt (jamesodhunt) wrote :

Updated the description to more accurately reflect the original intent of this bug.

I am currently writing a new grub snippet to add menu entries for the two rootfs's, along with logic to set the default menu entry depending on the value of the variables in the grub env block. Once landed, this will bring grub into alignment with uboot systems (the deviation was introduced by the late landing of the efi/ support in ubuntu-device-flash).

James Hunt (jamesodhunt) on 2015-02-12
Changed in snappy-ubuntu:
importance: Undecided → Critical
James Hunt (jamesodhunt) on 2015-03-03
Changed in snappy-ubuntu:
status: Confirmed → In Progress
James Hunt (jamesodhunt) on 2015-04-08
Changed in snappy-ubuntu:
status: In Progress → Fix Released
Michael Terry (mterry) on 2015-05-18
affects: snappy-ubuntu → snappy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers