[Bug 1910094] Re: uboot fails to save env after core18 refresh

Dave Jones 1910094 at bugs.launchpad.net
Tue May 18 11:46:03 UTC 2021


** Changed in: u-boot (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/1910094

Title:
  uboot fails to save env after core18 refresh

Status in snap-core18:
  New
Status in u-boot package in Ubuntu:
  Fix Released
Status in u-boot source package in Bionic:
  Fix Released
Status in u-boot source package in Focal:
  Fix Released
Status in u-boot source package in Groovy:
  Fix Released

Bug description:
  Attempts to refresh the core18 snap on some ARM devices (Raspberry Pi
  Model 3B/3B+/4B) fails during the post-refresh hook.

  
  ## Expected behavior

  The snap should refresh without issues.

  ## Actual behavior

  The refresh is rolled back after the reboot during post-refresh. Snap
  tasks <change-id> shows that the refresh errors out at “Automatically
  connect eligible plugs and slots of snap "core18"”.

  Upon zyga's request, I checked the boot logs via serial connection:

  Regular boot → https://paste.ubuntu.com/p/TmM3NHyzvb/
  Reboot after core18 refresh => https://paste.ubuntu.com/p/ZS9spYFYcf/

  Note the help outputs for `env` and `save`, which suggests an error in
  the `env export` command from https://github.com/snapcore/pi-
  gadget/blob/18-armhf/uboot.env.in#L20

  ## Context

  Custom gadget snap based on pi-gadget 18-armhf branch: https://gitlab.com/glancr/gadget-snap-pi-kiosk
  My repository includes this commit from upstream that changed `saveenv` to a custom `export_env` macro: https://github.com/snapcore/pi-gadget/commit/d837f0cfcdc84b92b3de8a380bafd14e55e65f6a

  snap version:
  snap    2.48.1
  snapd   2.48.1
  series  16
  kernel  5.3.0-1036-raspi2

  Discussion in #snappy:
  https://irclogs.ubuntu.com/2021/01/04/%23snappy.txt (from 9:34)

  
  Maybe related to https://bugs.launchpad.net/snap-core18/+bug/1900879 ; at least that was the issue prompting the changes in uboot.env.in.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snap-core18/+bug/1910094/+subscriptions



More information about the foundations-bugs mailing list