-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The daemon=true config is not set on Ubuntu Core during installation #161
Comments
Thanks @jrmcpeek for the detailed report, as usual. Something must've changed (in snapd?) that no longer allows |
@jrmcpeek I reported this on snapd, will come back here when we know more. |
Thanks for the quick response as always @Saviq! |
@jrmcpeek hey, what's the output of https://bugs.launchpad.net/snapd/+bug/2048508/comments/1 If you're building a custom image, you should simply set I'll be updating the documentation to highlight this requirement. |
@Saviq - Yes, we're running a custom image with a private brand store. Before I make the changes on our side to force this, I wonder if: Could the decision be inverted? That is, default to Alternatively, could a combination of "the old" detection and "the new" detection be used to reconcile this? The reason I ask is, for core devices - inclusive of custom core images - I would still expect the desired, default state is that:
With those, it seems odd that every custom builder would need to go out of their way to explicitly set this to get the previous default behavior |
@jrmcpeek the problem is that Yes, I will look for a way to more reliably determine that we're on classic, but regardless it's appropriate to reduce indeterminism in your custom images (and avoiding the check altogether) since you know you want those daemons to run. |
Only showing up if it's a TPM-backed Classic install helps explain the challenge then 🙂. I assume that's also why the original check is no longer sufficient - TPM-backed Classic installs would also match the grep check. Is this correct? In either case, we'll assume that we need to explicitly set At this point, I think the issue can be closed, unless you'd like to leave it open until documentation - or better classic detection investigation - is completed. |
Exactly, that's what's triggered the change.
Right indeed. I'll keep it open until we decide which direction to take. |
Hi, We would prefer to have the option defaulting to daemon=true on core systems. Is there already a decision in which direction you go? Thanks. |
That is our preference too. Our problem, as discussed above, is reliably identify core and classic systems. Once we have solved that we will post an update. |
Would it be an option to parse the /etc/os-release and if it is not core assume it is classic? As far as I know, it is accessible from within the snap. |
No. From within the snap On some systems, |
You should still be able to set the Edit: Like here: https://mir-server.io/docs/configuring-ubuntu-frame-through-a-gadget-snap |
It worked, but requires that the gadget with the setting is updated before installing the ubuntu-frame snap. |
Yeah I think part of the learning here is that in custom gadgets you should really not rely on defaults, and be explicit about your desired configuration. Something to add to our documentation. |
There is also snapd-rest-api which can be used to set ubuntu-frame's deamon configuration for this purpose rather than using gadget's default section. |
@bugraaydogar That is correct, but this will make ubuntu-frame even more coupled to our system. The ubuntu-frame is an optional feature that can be installed to our system, and from my opinion it should start in daemon mode by default. It should not be necessary, to check if it is installed and than call a specific configuration to make the deamon enabled. I think snapd should provide a dedicated way to identify if the system is classic or not, because identifying from within a snap that the system is classic might be useful for other use cases as well. |
Any update or roadmap on this one? |
Hi @mapero, while this may be something solvable in the future, the best approach today is to encode the defaults in your custom gadget, as per: https://mir-server.io/docs/configuring-ubuntu-frame-through-a-gadget-snap Just add defaults:
BPZbvWzvoMTrpec4goCXlckLe2IhfthK:
daemon: true |
With the following snaps:
Note:
22-hwe/stable
and22/candidate
are in use, related to #160.According to the documentation (https://mir-server.io/docs/run-ubuntu-frame-on-your-device), the
daemon
config value should default totrue
on Ubuntu Core devices:This behavior used to work as documented.
I wonder if
daemon
no longer getting set totrue
is related to:snapctl model
to determine if Classic #155Running the previous install check:
The script successfully prints out
daemon=true
.Attempting to run the current install check:
The script produces:
And, that test script matches the post-installation state:
The text was updated successfully, but these errors were encountered: