When attempting to use a newer version of the Linux kernel on an Ubuntu Core Image from a bootable USB deivce, I see that the core snap does not get properly mounted:
lopezem@localhost:~$ sudo systemctl status snap-core-4917.mount
● snap-core-4917.mount - Mount unit for core, revision 4917
Loaded: loaded (/etc/systemd/system/snap-core-4917.mount; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-07-23 14:43:31 UTC; 154ms ago
Where: /snap/core/4917
What: /var/lib/snapd/snaps/core_4917.snap
Process: 7316 ExecMount=/bin/mount /var/lib/snapd/snaps/core_4917.snap /snap/core/4917 -t squashfs -o nodev,ro,x-gdu.hide (code=exited, status=0/SUCCESS)
Jul 23 14:43:29 localhost.localdomain systemd[1]: Mounting Mount unit for core, revision 4917...
Jul 23 14:43:29 localhost.localdomain systemd[1]: Mounted Mount unit for core, revision 4917.
lopezem@localhost:~$ sudo systemctl status snap-core-4917.mount
● snap-core-4917.mount
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Jul 23 14:44:02 localhost.localdomain systemd[1]: Unmounted Mount unit for core, revision 4917.
Jul 23 14:44:10 localhost.localdomain systemd[1]: Mounting Mount unit for core, revision 4917...
Jul 23 14:44:10 localhost.localdomain systemd[1]: Mounted Mount unit for core, revision 4917.
Jul 23 14:44:13 localhost.localdomain systemd[1]: Unmounted Mount unit for core, revision 4917.
Jul 23 14:44:21 localhost.localdomain systemd[1]: Mounting Mount unit for core, revision 4917...
Jul 23 14:44:21 localhost.localdomain systemd[1]: Mounted Mount unit for core, revision 4917.
Jul 23 14:44:23 localhost.localdomain systemd[1]: Unmounted Mount unit for core, revision 4917.
Jul 23 14:44:32 localhost.localdomain systemd[1]: Mounting Mount unit for core, revision 4917...
Jul 23 14:44:32 localhost.localdomain systemd[1]: Mounted Mount unit for core, revision 4917.
Jul 23 14:44:35 localhost.localdomain systemd[1]: Unmounted Mount unit for core, revision 4917.
Consequently, none of the other snaps can be loaded.
I am creating a Ubuntu-kernel 4.15.0 snap using the following:
git clone https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic
git checkout Ubuntu-4.15.0-28.30
I noticed that there is no directory named kernel/configs/snappy/
, perhaps this might be the culprit?
Below is my snapcraft.yaml
file:
name: pc-kernel
version: null
version-script: |
. debian/debian.env
dpkg-parsechangelog -l $DEBIAN/changelog -S version
summary: The Ubuntu generic Linux kernel
description: This Ubuntu generic Linux kernel
grade: stable
confinement: strict
type: kernel
parts:
kernel:
plugin: kernel
source: .
source-type: git
kconfigflavour: generic
kconfigs:
- CONFIG_DEBUG_INFO=n
- CONFIG_MMC_SDHCI=y
- CONFIG_MMC_SDHCI_PLTFM=y
- CONFIG_MMC_SDHCI_MSM=y
- CONFIG_DEBUG_RODATA=y
- CONFIG_DEBUG_SET_MODULE_RONX=y
kernel-initrd-modules:
- squashfs
- usbcore
- sd_mod
- ehci_hcd
- uhci_hcd
- ohci_hcd
- usb_storage
- scsi_mod
override-build: |
cp debian/scripts/retpoline-extract-one \
$SNAPCRAFT_PART_BUILD/scripts/ubuntu-retpoline-extract-one
snapcraftctl build
kernel-with-firmware: false
firmware:
plugin: nil
stage-packages:
- linux-firmware
organize:
lib/firmware: firmware
prime:
- -usr
- -lib
build-packages:
- cpio
- libssl-dev
Any suggestions is much appreciated!