From my understanding “preseed” is a concept brought into Ubuntu Core for Ubuntu Server and Desktop where the install of the OS could be automated.
The only documentation I was able to find about Ubuntu Core and Preseed is the following:
I want to do some prototyping and create two images with different unattended installation instructions. The instructions only show a command (below) that will allow signing a file and adding a “preseed” argument:
user@ubuntu:~$ ls /var/lib/snapd/see
ls: cannot access '/var/lib/snapd/see': No such file or directory
user@ubuntu:~$ ls /var/lib/snapd/se
seccomp/ sequence/
user@ubuntu:~$ ls /var/lib/snapd/s
I want to automate my Ubuntu Core installation with the following:
Specify the Ubuntu One user name:
Configure a APN for cellular internet connectivity
I want to get an example seed.yaml file that can be an example of how to do this.
Here are my questions:
Where can I find this seed.yaml file?
What are the keys and values I need to specify for this file?
How do I pass in the seed file path to the “ubuntu-image” command?
you could create a “config snap” that utilizes network-control to set up networking … for the U1 account you can use a system-user assertion (i think there were plans to support pre-adding that assertion to the image but i can not find docs for it)…
i once created a snap that does create a user (not a U1 one though, just an actual local account) and network config as example (not sure it still works but it might give you some ideas), see:
@ogra I am getting an error with adding this config-snap to my image, can you help?
kris@pop-dev-se30:~/uc-image$ ubuntu-image snap my-model.model --snap /home/kris/uc-config-snap/config-snap/config-snap_0.1_amd64.snap
[0] make_temporary_directories
[1] determine_output_directory
[2] prepare_image
Error: Error preparing image: cannot override channels, add devmode snaps, local snaps, or extra snaps with a model of grade higher than dangerous
kris@pop-dev-se30:~/uc-image$
@ogra I got it to build the image by changing grade to dangerous in my-model.json. I programmed the image and the installer fails. It is stuck in a loop. This is the error that is being shown:
/usr/share/subiquity/console-conf-wrapper: line 32: snap: command not found
Press enter to configure
Yes, i tested it in a grade dangerous UC18 image years ago (with a gadget with the necessary auto-connections) , but it is really only meant as code example and should definitely be forward ported to the matching base snap before including it in an image…
it also assumes no network-manager snap but solely netplan (a non network-manager image has only one file in the /etc/netplan dir) for a network-manager based install the networking bit will be more complex …
Boot up device with Ubuntu Desktop and write the image to the solid state drive.
Ubuntu Core is stuck in a install loop.
What do I need to provide you to help get over this issue?
Is there no one out there that does unattended installs of Ubuntu Core and setting up cellular modem configuration? I would think this would be the #1 item to get going with Ubuntu Core.