Sunday 22 October 2017

Loading a developmental kernel Snap


The command to load the kernel snap is :

#snap install Snapped 96boards-kernel_XXX_arm64.snap --dangerous

Once in a while there is error in loading the kernel, in that case below workaround can be used.

Get the name of  existing kernel snap

# snap list kernel-name

Back up the existing kernel

# cp /var/lib/snapd/snap/kernel-name-version1.snap ~/

Replace the developing kernel to current kernel snap.

# sudo cp <new kernel snap> /var/lib/snapd/snaps/kernel-name-version1.snap

Reboot the system and test it

# sudo reboot

If it doesnt boot up, restore the old snap.

# sudo cp kernel-name-version1.snap /var/lib/snapd/snaps/kernel-name-version1.snap