Recommended method to use Ubuntu Frame on a custom Core image?

I have a snap based kiosk app that I’ve used to make an custom Ubuntu core image. I included Ubuntu frame as a snap in the image model assertion to make installation as simple as possible. When I flashed the image onto a device and booted for the first time, it successfully booted and loaded directly into my kiosk app’s GUI. This is great and (partially) what I expected to happen. The issue is that Ubuntu Frame interrupts the initial setup of core. In order for my app to work properly, the network needs to be configured in a certain way, and that’s not possible with the current setup. On a similar note, it’s not possible to SSH into the device’s terminal. Is there a known way around this issue? Or is the only solution to not include Ubuntu frame as an image snap and, after the initial boot and setup, install it?

1 Like

Hi, I cant answer your question as Im merely trying to create a custom image with ubuntu frame and my app pre configured in the model.json, can you share some information on how you achieved it? No matter what I do I cant seem to install an image with ubuntu-frame on it. Thanks in advance

You could make your app use the network-setup-control interface, add an initial popup window to enter network bits and have your app write out an /etc/netplan/99my-app-netconfig.yaml (or however you want to call the file)…

Hi I tried to use the console-conf snap to configure the network details, but after inserting the network details it only boots into the screen where it shows the ip address. Is there a way to make this work so that console-conf is only used on the first boot and that it then in future boots to my app?

If your app is a service it should just start once ubuntu-frame is up…

Thanks for the quick response ogre. I thought that too but it always boots into console-conf. Could it be that I have to change the image model config that it boots into my app?