I looked at this a bit more and the following change broke the
installer:

https://git.launchpad.net/livecd-
rootfs/commit/?id=f4fa240ed7a43ed927634d5829812e37955d4b4c

this was uploaded to livecd-rootfs at apr-12 so it ended up on the
medium on 20190413.

The following commit fixed it:

https://git.launchpad.net/livecd-
rootfs/commit/?id=39f2558b96a35a77988f762f941d1e5bf581f8a4

And indeed:
```
$ cat > /tmp/test-seed.yaml <<EOF
-
   name: core
   channel: foo
   file: bar
-
   name: snapd
   channel: stable/ubuntu-19.04
   file: snapd_941.snap
-
   name: gnome-foo
   channel: foo
   name: xxx
EOF
# broken sed command will produce exactly what we saw:
$ sed -e'/name: snapd/,+2d' /tmp/test-seed.yaml -
   name: core
   channel: foo
   file: bar
-
-
   name: gnome-foo
   channel: foo
   name: xxx
# and the fixed sed command actually fixes things:
$ sed -e'N;/name: snapd/,+2d' /tmp/test-seed.yaml 
-
   name: core
   channel: foo
   file: bar
-
   name: gnome-foo
   channel: foo
   name: xxx
```

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

Title:
  snapd fails to process corrupted seed.yaml on Ubuntu 19.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1825437/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to