Ubuntu-Image 2.0 snap does not inject required environment variables
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Incomplete
|
Undecided
|
William Wilson |
Bug Description
Current setup:
#snap info ubuntu-image
installed: 1.11+snap1 (214) 12MB classic
(latest/stable channel)
#snap version
snap 2.52.1
snapd 2.52.1
series 16
ubuntu 18.04
kernel 5.4.0-90-generic
#snapcraft --version (For supporting legacy Core16, moving soon over to latest snapcraft)
snapcraft, version 4.8
#snap info snapcraft
installed: 4.8 (6512) 74MB classic
(4.x/stable channel)
###Building a image:
ubuntu-image snap -c stable --snap mygadget-
Fetching core
WARNING: "mykernel-kernel", "mygadget-gadget" installed from local snaps disconnected from a store cannot be refreshed subsequently!
Copying "kernel/
Copying "mygadget-
#mount built image
sudo losetup -Pf image/myimage.img
*mount the boot partition*
sudo mkdir -p /media/ruhan/boot
mount /dev/loop8p1 /media/ruhan/boot/
#cat /media/
e▒e▒snap_
*unmount the image/boot partitions*
#######
refresh ubuntu-image to 2.0+
# snap refresh ubuntu-image --edge
ubuntu-image (edge) 2.0+snap2 from Canonical✓ refreshed
Repeat the same command as above:
#ubuntu-image snap -c stable --snap mygadget-
Fetching core
WARNING: "mykernel-kernel", "mygadget-gadget" installed from local snaps disconnected from a store cannot be refreshed subsequently!
Copying "kernel/
Copying "mygadget-
WARNING: volumes:
#mount built image
sudo losetup -Pf image/myimage.img
*mount the boot partition*
mount /dev/loop8p1 /media/ruhan/boot/
#cat /media/
▒▒▒snappy=1▒▒▒▒▒
Changed in ubuntu-image: | |
assignee: | nobody → William Wilson (jawn-smith) |
status: | New → In Progress |
I'm having trouble recreating this. I don't have your exact model assertion and snaps, but have been experimenting with the dragonboard:
``` desktop: ~$ ubuntu-image --version desktop: ~$ ubuntu-image snap -O ubuntu-image/ ubuntu- image/dragonboa rd-model. assertion dragonboard: structure: 7:filesystem_ label used for defining partition roles; use role instead desktop: ~$ sudo losetup -Pf ubuntu- image/dragonboa rd.img desktop: ~$ sudo mount /dev/loop35p8 /mnt desktop: ~$ cat /mnt/uboot.env
jawn-smith@
ubuntu-image 2.0+22.04ubuntu3
jawn-smith@
Fetching core
Fetching dragonboard-kernel
Fetching dragonboard
WARNING: volumes:
jawn-smith@
jawn-smith@
jawn-smith@
(removed lots of garbage) core_11996. snapsnap_ kernel= dragonboard- kernel_ 180.snapsnap_ menuentry= dragonboard
snap_core=