Public bug reported: The refresh to a new kernel snap is failing in uc18 image. Something important to remark is that the DTB's for the new kernel were installed, but it still failed to complete the refresh to the new kernel
Steps to reproduce I am using a rpi3 and I create an uc18 arm64 image using the following snaps $ snap list core18 2127 core20 1084 pi 81 pi-kernel 278 snapd 12967 Then, once the image is booted, I login and refresh snapd and pi gadget $ sudo snap refresh snapd --beta 2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart... snapd (beta) 2.52 from Canonical✓ refreshed $ sudo snap refresh pi --stable pi (18-pi/stable) 18-1 from Canonical✓ refreshed Then I refresh pi-kernel snap $ sudo snap refresh pi-kernel --stable Make current revision for snap "pi-kernel" unavailable \ Broadcast message from root@localhost (Mon 2021-09-27 20:55:04 UTC): But it fails 7 Error today at 20:54 UTC today at 20:56 UTC Refresh "pi-kernel" snap sergio-j-cazzolato@localhost:~$ snap change 7 Status Spawn Ready Summary Done today at 20:54 UTC today at 20:56 UTC Ensure prerequisites for "pi-kernel" are available Undone today at 20:54 UTC today at 20:56 UTC Download snap "pi-kernel" (343) from channel "18-pi/stable" Done today at 20:54 UTC today at 20:56 UTC Fetch and check assertions for snap "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Mount snap "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Run pre-refresh hook of "pi-kernel" snap if present Undone today at 20:54 UTC today at 20:56 UTC Stop snap "pi-kernel" services Undone today at 20:54 UTC today at 20:56 UTC Remove aliases for snap "pi-kernel" Undone today at 20:54 UTC today at 20:56 UTC Make current revision for snap "pi-kernel" unavailable Done today at 20:54 UTC today at 20:56 UTC Update assets from kernel "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Copy snap "pi-kernel" data Undone today at 20:54 UTC today at 20:56 UTC Setup snap "pi-kernel" (343) security profiles Undone today at 20:54 UTC today at 20:56 UTC Make snap "pi-kernel" (343) available to the system Error today at 20:54 UTC today at 20:56 UTC Automatically connect eligible plugs and slots of snap "pi-kernel" Hold today at 20:54 UTC today at 20:56 UTC Set automatic aliases for snap "pi-kernel" Hold today at 20:54 UTC today at 20:56 UTC Setup snap "pi-kernel" aliases Hold today at 20:54 UTC today at 20:56 UTC Run post-refresh hook of "pi-kernel" snap if present Hold today at 20:54 UTC today at 20:56 UTC Start snap "pi-kernel" (343) services Hold today at 20:54 UTC today at 20:56 UTC Clean up "pi-kernel" (343) install Hold today at 20:54 UTC today at 20:56 UTC Run configure hook of "pi-kernel" snap if present Hold today at 20:54 UTC today at 20:56 UTC Run health check of "pi-kernel" snap Done today at 20:54 UTC today at 20:56 UTC Handling re-refresh of "pi-kernel" as needed ...................................................................... Make snap "pi-kernel" (343) available to the system ** Affects: linux (Ubuntu) Importance: Undecided Status: New ** Description changed: The refresh to a new kernel snap is failing in uc18 image. Something important to remark is that the DTB's for the new kernel were installed, but it still failed to complete the refresh to the new kernel Steps to reproduce I am using a rpi3 and I create an uc18 arm64 image using the following snaps $ snap list - Name Version Rev Tracking Publisher Notes - core18 20210722 2127 latest/stable canonical✓ base - core20 20210702 1084 latest/stable canonical✓ base - pi 18-1 81 18-pi/stable canonical✓ gadget - pi-kernel 5.3.0-1040.42 278 18-pi/stable canonical✓ kernel - snapd 2.52 13269 latest/beta canonical✓ snapd + core18 2127 + core20 1084 + pi 81 + pi-kernel 278 + snapd 12967 Then, once the image is booted, I login and refresh snapd and pi gadget $ sudo snap refresh snapd --beta 2021-09-27T20:49:56Z INFO Waiting for automatic snapd restart... snapd (beta) 2.52 from Canonical✓ refreshed $ sudo snap refresh pi --stable pi (18-pi/stable) 18-1 from Canonical✓ refreshed Then I refresh pi-kernel snap $ sudo snap refresh pi-kernel --stable Make current revision for snap "pi-kernel" unavailable \ Broadcast message from root@localhost (Mon 2021-09-27 20:55:04 UTC): But it fails 7 Error today at 20:54 UTC today at 20:56 UTC Refresh "pi-kernel" snap sergio-j-cazzolato@localhost:~$ snap change 7 Status Spawn Ready Summary Done today at 20:54 UTC today at 20:56 UTC Ensure prerequisites for "pi-kernel" are available Undone today at 20:54 UTC today at 20:56 UTC Download snap "pi-kernel" (343) from channel "18-pi/stable" Done today at 20:54 UTC today at 20:56 UTC Fetch and check assertions for snap "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Mount snap "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Run pre-refresh hook of "pi-kernel" snap if present Undone today at 20:54 UTC today at 20:56 UTC Stop snap "pi-kernel" services Undone today at 20:54 UTC today at 20:56 UTC Remove aliases for snap "pi-kernel" Undone today at 20:54 UTC today at 20:56 UTC Make current revision for snap "pi-kernel" unavailable Done today at 20:54 UTC today at 20:56 UTC Update assets from kernel "pi-kernel" (343) Undone today at 20:54 UTC today at 20:56 UTC Copy snap "pi-kernel" data Undone today at 20:54 UTC today at 20:56 UTC Setup snap "pi-kernel" (343) security profiles Undone today at 20:54 UTC today at 20:56 UTC Make snap "pi-kernel" (343) available to the system Error today at 20:54 UTC today at 20:56 UTC Automatically connect eligible plugs and slots of snap "pi-kernel" Hold today at 20:54 UTC today at 20:56 UTC Set automatic aliases for snap "pi-kernel" Hold today at 20:54 UTC today at 20:56 UTC Setup snap "pi-kernel" aliases Hold today at 20:54 UTC today at 20:56 UTC Run post-refresh hook of "pi-kernel" snap if present Hold today at 20:54 UTC today at 20:56 UTC Start snap "pi-kernel" (343) services Hold today at 20:54 UTC today at 20:56 UTC Clean up "pi-kernel" (343) install Hold today at 20:54 UTC today at 20:56 UTC Run configure hook of "pi-kernel" snap if present Hold today at 20:54 UTC today at 20:56 UTC Run health check of "pi-kernel" snap Done today at 20:54 UTC today at 20:56 UTC Handling re-refresh of "pi-kernel" as needed ...................................................................... Make snap "pi-kernel" (343) available to the system -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945242 Title: Failed to refresh to pi-kernel rev 343 on uc18 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1945242/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs