Hi,
I built a ubuntu core 18 image with additional gadget snap, but I get a following error when I am trying to configure system.
/usr/share/subiquity/console-conf-wrapper: line 13: snap: command not found
Press enter to configure.
If I proceed through config, after I type my email and press ENTER, I can see that there is a flash of error/exceptions and configuration wizard goes back to beginning.
I found that someone had a similar issue here: With custom kernel in AMD64 architecture, snap command not found , but there was no solution for this.
I used following repo to built my gadget “git clone https://github.com/snapcore/pc-amd64-gadget.git” and I checked into branch 18
I edited snapcraft.yaml and added serial port configuration like this
version: '0.1.0'
type: gadget
base: core18
summary: PC gadget to scan QR code
description: |
This gadget enables generic pc devices to work with Ubuntu Core
grade: stable
confinement: strict
parts:
grub-prepare:
plugin: nil
stage-packages:
- grub-efi-amd64-signed
- grub-pc-bin
- shim-signed
prime: [ -* ]
grub:
source: .
build-packages:
- grub-common
plugin: make
after: [grub-prepare]
slots:
qrscanner:
interface: serial-port
path: /dev/ttyACM0
after this I built my image with a following command
sudo ubuntu-image snap --channel stable --snap qrscanner_0.1.0_amd64.snap pc-mine.model
where pc-mine.model looks like this:
authority-id: canonical
series: 16
brand-id: canonical
model: ubuntu-core-18-amd64
architecture: amd64
base: core18
display-name: Ubuntu Core 18 (amd64)
gadget: pc=18
kernel: pc-kernel=18
timestamp: 2018-08-13T09:00:00+00:00
sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn
AcLBXAQAAQoABgUCW37NBwAKCRDgT5vottzAEut9D/4u9lD3lFWXoHx1VQT+mUCROcFHdXQBY/PJ
NriRiDwBaOjEo5mvHMRJ2UulWvHnwqyMJctJKBP+RCKlrJEPX8eaLP/lmihwIiFfmzm49BLaNwli
si0entond1sVWfiNr7azXoEuAIgYvxmJIvE+GZADDT0/OTFQRcLU69bhNEAQKBnkT0y/HTpuXwlJ
TuwwJtDR0vZuFtwzj6Bdx7W42+vGmuXE7M4Ni6HUySNKYByB5BsrDf3/79p8huXyBtnWp+HBsHtb
fgjzQoBcspj65Gi+crBrJ4jS+nfowRRVXLL1clXJOJLz12za+kN0/FC0PhussiQb5UI7USXJ+RvA
Y8U1vrqG7bG5GYGqe1KB9GbLEm+GBPQZcZI3jRmm9V7tm9OWQzK98/uPwTD73IW7LrDT35WQrIYM
fBfThJcRqpgzwZD/CBx82maLB9tmsRF5Mhcj2H1v7cn8nSkbv7+cCzh25lKv48Vqz1WTgO3HMPWW
0kb6BSoC+YGpstSUslqtpLdY/MfFI0DhshH2Y+h0c9/g4mux/Zb8Gs9V55HGn9mr2KKDmHsU2k+C
maZWcXOxRpverZ2Pi9L4fZxhZ9H+FDcMGiHn2vJFQhI3u+LiK3aUUAov4k3vNRPGSvi1AGhuEtUa
NG54bznx12KgOT3+YiHtfE95WiXUcJUrEXAgfVBVoA==
#ubuntu-image --version
ubuntu-image 1.7+snap1
#snapcraft --version
snapcraft, version 3.8
What am I doing wrong? I assume that there is something wrong with my gadget, because when I built this new image without it, I can boot and configure new system without any problems.
Kind regards,