aksAW: all-snap image - Unable to successfully sideload kernel.snap

Gunther Laure Gunther.Laure at dewetron.com
Fri Apr 15 10:12:07 UTC 2016


Update and another set of problems:

I took the running kernel snap package /var/lib/snappy/snaps/canonical-pc-linux.canonical_4.4.0-14-1.snap and unpacked it.

sudo unsquashfs /var/lib/snappy/snaps/canonical-pc-linux.canonical_4.4.0-14-1.snap

Changed the name in meta/snap.yaml (and in package.yaml)

and compressed it again:
mksquashfs squashfs-root test1.snap -noappend -comp xz -no-xattrs

Installing this package works and it boots successfully.

After reboot I tried to remove it again and fallback to the previous kernel:

sudo snappy remove test1
snappy package cannot be removed

I tried:
sudo snappy deactivate test1
sudo snappy remove test1
Removing test1
Waiting for snaps-test1.sideload-GJJIHZJ.mount to stop

and this worked.
sudo snappy list –v does not show it anymore

I reboot:
sudo reboot

BUT grub still tries to boot using the removed image:
error: file
/system-data/var/lib/snappy/snaps/test1.sideload_ GJJIHZJ.snap not found
error: disk ‘loop’ not found
error: you need to load the kernel first.

Press any key to continue…

Grub will not recover and switch to the previous working kernel!

Thanks in advance!
Gunther
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160415/8257eca8/attachment-0001.html>


More information about the snappy-devel mailing list