automatic reboot fails with rc.local crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Steps to reproduce:
Create a rolling/edge image (amd64):
$ sudo ubuntu-device-flash core rollling --channel edge -o snappy.img --developer-mode
(tested it with version 113)
Launch
$ kvm -m 768 -redir :8022::22 ./snappy.img
Update
$ ssh -p 8022 ubuntu@localhost
$ sudo snappy update
Make rc.local in the other partition provoke a crash on boot:
$ sudo mount -o remount,rw /writable/
$ printf '#!bin/sh\nprintf c > /proc/sysrq-
$ sudo chmod a+w /writable/
$ sudo grub-editenv /boot/grub/grubenv set snappy_mode=try
$ sudo grub-editenv /boot/grub/grubenv set snappy_ab=b
$ sudo reboot
Reboot. The system enters a loop trying to boot from partition b. In 15.04 (version 124 and before) this works fine, the system detects the failure and reboots to the previous partition.
Related branches
- John Lenton (community): Approve
- Federico Gimenez: Pending (continuous-integration) requested
-
Diff: 26 lines (+1/-5)2 files modified_integration-tests/tests/failover_rclocal_crash_test.go (+0/-5)
debian/ubuntu-snappy.boot-ok.service (+1/-0)
description: | updated |
tags: | added: snappy-robustness |
Changed in snappy: | |
status: | Triaged → In Progress |
Changed in snappy: | |
status: | Fix Committed → Fix Released |
Critical because it appears to be a regression