Dear all,
following the reference canonical guides
and
I have compiled a custom ubuntu core image with the following command:
sudo ubuntu-image snap -c stable --snap ./pi_22-2_armhf.snap ubuntu-core-22-pi-armhf.model
the content of ubuntu-core-22-pi-armhf.model is the following
type: model
authority-id: --------------------------------------------------
series: 16
brand-id: --------------------------------------------------
model: ubuntu-core-22-pi-armhf
architecture: armhf
base: core22
grade: dangerous
snaps:
-
default-channel: 22/stable
id: YbGa9O3dAXl88YLI6Y1bGG74pwBxZyKg
name: pi
type: gadget
-
default-channel: 22/stable
id: jeIuP6tfFrvAdic8DMWqHmoaoukAPNbJ
name: pi-kernel
type: kernel
-
default-channel: latest/stable
id: amcUKQILKXHHTlmSa7NMdnXSx02dNeeT
name: core22
type: base
-
default-channel: latest/stable
id: PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
name: snapd
type: snapd
timestamp: 2023-09-07T09:40:46+00:00
sign-key-sha3-384:
--------------------------------------------------
The content of the output seed.manifest is the following
core22 868
pi x1
pi-kernel 664
snapd 20101
I think that the entry
pi x1
is due to the
--snap ./pi_22-2_armhf.snap
option I use for the ubuntu-image command.
The pi_22-2_armhf.snap is the gadget snap I got by compiling
I did however a change in the sources, specifically in the gadget.yaml file
I added the section
+defaults:
+ system:
+ service:
+ console-conf:
+ disable: true
I flashed a Raspberry CM4S with the pi.img output image using the rpi-imager tool
On the serial output, after some boot messages, I have the prompt for connecting to the CM4S:
Ubuntu Core 22 on 127.0.0.2 (ttyAMA0)
ubuntu login:
I expected such output because I disabled the notorious console-conf that requires to have an hdmi screen and a usb keyboard connected to the board
In the user-data source file of the gadget snap
I read the following:
# On first boot, set the (default) ubuntu user's password to "ubuntu" and
# expire user passwords
chpasswd:
expire: true
list:
- ubuntu:ubuntu
so I tried to use the ubuntu:ubuntu username:password couple
but it did not work.
Anyone who can enlighten me on this issue?
I would like to use the gadget snap in order to establish a user with ssh access without recurring to console.conf.