Comment 6 for bug 1782116

Verified the fix on Bionic with linux 4.15.0-33.36

-----------------------------------------------
$ snapcraft
[...]
Staging firmware
Staging kernel
Priming firmware
Priming kernel
Determining the version from the project repo (version-script).
The version has been set to '4.15.0-33.36'
Snapping 'pc-kernel' |
Snapped pc-kernel_4.15.0-33.36_amd64.snap
-----------------------------------------------

And on Xenial with linux 4.4.0-134.160

-----------------------------------------------
$ snapcraft
[...]
Staging firmware
Staging kernel
Priming firmware
Priming kernel
Determining the version from the project repo (version-script).
The version has been set to '4.4.0-134.160'
Snapping 'pc-kernel' -
Snapped pc-kernel_4.4.0-134.160_amd64.snap
-----------------------------------------------