ubuntu-snappy.firstboot fails when oem snap contains preinstalled snap
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
Critical
|
John Lenton | ||
Bug Description
sudo systemctl status ubuntu-
● ubuntu-
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Thu 2015-10-29 15:26:16 UTC; 4min 0s ago
Process: 808 ExecStart=
Main PID: 808 (code=exited, status=1/FAILURE)
Oct 29 15:26:15 localhost.
Oct 29 15:26:16 localhost.
Oct 29 15:26:16 localhost.
Oct 29 15:26:16 localhost.
Oct 29 15:26:16 localhost.
Oct 29 15:26:16 localhost.
Oct 29 15:26:16 localhost.
This happens on the first boot of the created image with u-d-f build with an OEM snap which contains preinstalled: spreed-webrtc
| Simon Eisenmann (longsleep) wrote : | #1 |
| Simon Eisenmann (longsleep) wrote : | #2 |
Same problem with 15.04/edge
| Changed in snappy: | |
| status: | New → Confirmed |
| importance: | Undecided → Critical |
| Joachim Bauch (fancycode) wrote : | #3 |
Also happens with non-sideloaded snaps:
● ubuntu-
Loaded: loaded (/lib/systemd/
Active: failed (Result: exit-code) since Fri 2015-10-30 11:13:25 UTC; 1min 6s ago
Process: 806 ExecStart=
Main PID: 806 (code=exited, status=1/FAILURE)
Oct 30 11:13:24 localhost.
Oct 30 11:13:25 localhost.
Oct 30 11:13:25 localhost.
Oct 30 11:13:25 localhost.
Oct 30 11:13:25 localhost.
Oct 30 11:13:25 localhost.
Oct 30 11:13:25 localhost.
| John Lenton (chipaca) wrote : | #4 |
Easy way to reproduce:
* branch snappy-systems, patch with attached diff, build oem package
* build system with that oem package
* boot it
* look at ubuntu-
| John Lenton (chipaca) wrote : | #5 |
The fix is to ensure run-hooks is run before firstboot.
| Changed in snappy: | |
| assignee: | nobody → John Lenton (chipaca) |
| status: | Confirmed → In Progress |
| Simon Eisenmann (longsleep) wrote : | #6 |
When running run-hooks before firstboot is has the side effact that snap services start before firstboot. It lets firstboot run through fine, though all configuration applied by it is not there as firstboot ran too late.
A workaround is to add a external port to the service. That makes it run after snappy-
| Michael Vogt (mvo) wrote : | #7 |
This mechanism got reworked in ubuntu core 16 and firstboot and pre-installed snaps works now.
| Changed in snappy: | |
| status: | In Progress → Fix Released |


Seen on 15.04/stable (armhf)