uc20 seeding fails with "service.console-conf.disable: true"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Critical
|
Michael Vogt |
Bug Description
When the gadget.yaml contains:
"""
defaults:
system:
service.
"""
UC20 fails to seed.
What happens:
The system is stuck in "Doing ... Run configure hook of "core" snap if present"
It looks like the issues is that the "systemctl restart --all serial-console@*" that is run in the services.go code hangs because of a circular dependency between "serial-
Because the core configuration is a hijacked hook we never timeout on this. This is visible via "ps afx" where snapd has a "systemctl restart serial-
The code in snapd that handles this is:
https:/
Changed in snapd: | |
importance: | Undecided → Critical |
tags: | added: uc20 |
description: | updated |
Changed in snapd: | |
status: | New → Triaged |
Changed in snapd: | |
status: | New → In Progress |
assignee: | nobody → Michael Vogt (mvo) |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Changed in snapd: | |
milestone: | none → 2.47 |
Changed in snapd: | |
status: | Fix Committed → Fix Released |
One may not disable console conf like that ever.
because that may result in giving interactive login prompt, which is a no-no.
Console-conf must own the serial console login prompt, and tell the user how to ssh in, how to take ownership of the device, or if taking ownership of the device via the console is not allowed.
Are you trying to get getty / login running on the serial console? Or are you trying to implement a flag that prevents users from "taking owership of the device via physical serial console"?