core26: kernel plugin fails to run
Metadata
Current evaluation
Fixed by merged PR canonical/snapcraft#6425 (commit be405aad6), updating the kernel plugin to handle modules packaged under usr/lib on usrmerged core26 systems.
Resolution: closed resolved
Reason: PR #6425 was merged as commit be405aad6, resolving the missing lib/modules failure by supporting the usr-merged layout used by core26 Linux packages.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Check existing issues
- [x] I've verified that this bug isn't described by any existing issues.
### Bug description
When trying to build a kernel snap using the new kernel plugin, the build fails due to missing usrmerge symlinks in `CRAFT_PART_INSTALL`:
```
2026-09-15 09:29:00.450 :: Finalizing install directory...
2026-09-15 09:29:00.450 :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
2026-09-15 09:29:00.451 :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
2026-09-15 09:29:00.452 Failed to run the build script for part 'kernel'.
2026-09-15 09:29:00.452 Detailed information:
:: + create_snap_structure
:: + echo Finalizing install directory...
:: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
```
In the debug console:
```
snapcraft-kernel-test-amd64-79746 ../project# ls -al /root/parts/kernel/install/
total 44880
drwxr-xr-x 4 root root 4096 Sep 15 09:30 .
drwxr-xr-x 10 root root 4096 Sep 15 09:30 ..
-rw------- 1 root root 11018211 Aug 1 04:09 System.map-7.0.0-31-generic
-rw-r--r-- 1 root root 308473 Aug 1 04:09 config-7.0.0-31-generic
drwxr-xr-x 3 root root 4096 Aug 17 19:26 lib
drwxr-xr-x 4 root root 4096 Aug 1 04:09 usr
-rw------- 2 root root 17303944 Aug 1 04:01 vmlinuz
-rw------- 2 root root 17303944 Aug 1 04:01 vmlinuz-7.0.0-31-generic
snapcraft-kernel-test-amd64-79746 ../project# ls -al /root/parts/kernel/install/lib
total 12
drwxr-xr-x 3 root root 4096 Aug 17 19:26 .
drwxr-xr-x 4 root root 4096 Sep 15 09:30 ..
drwxr-xr-x 2 root root 4096 Sep 15 09:30 firmware
snapcraft-kernel-test-amd64-79746 ../project# ls -al /root/parts/kernel/install/usr/lib/modules/
total 12
drwxr-xr-x 3 root root 4096 Aug 1 04:09 .
drwxr-xr-x 6 root root 4096 Aug 1 04:09 ..
drwxr-xr-x 5 root root 4096 Aug 1 04:09 7.0.0-31-generic
```
The modules are in `usr/lib/modules`, not `lib/modules`, and there is no `lib -> usr/lib` symlink.
### Steps to reproduce
Build a kernel snap with `build-base: core26` (see `snapcraft.yaml`). This issue does not occur with `core24` snaps.
### Environment
Snapcraft is using LXD 6.9 to build the snaps. This occurs on both amd64 and arm64 build hosts, and with snapcraft 9.1.0.post8 and 9.1.0.post3 from the `latest/edge` and `9.x/edge` channels, respectively.
### snapcraft.yaml
```yaml
name: kernel-test # you probably want to 'snapcraft register <name>'
build-base: core26 # the base snap is the execution environment for this snap
version: "0.1" # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
type: kernel
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
kernel:
plugin: kernel
kernel-ubuntu-binary-package: true
override-build: |
craftctl default
kver="$(basename "${CRAFT_PART_INSTALL}/lib/modules/"*)"
craftctl set version="${kver}"
stage-packages:
- linux-firmware:${CRAFT_ARCH_BUILD_FOR}
- wireless-regdb:${CRAFT_ARCH_BUILD_FOR}
stage:
- System.map-*
- config-*
- dtbs/*
- modules/*
- firmware/*
- lib/firmware
- lib/modules
- vmlinuz-*
prime:
- System.map-*
- config-*
- dtbs/*
- modules/*
- firmware/*
initrd:
after:
- kernel
plugin: initrd
initrd-build-efi-image: true
stage:
- snapd-info
- kernel.efi
```
### Log output
```shell
:: 2026-09-15 09:30:02.585 Starting snapcraft, version 9.1.0.post8
:: 2026-09-15 09:30:02.585 Log verbosity level set to DEBUG
:: 2026-09-15 09:30:02.585 Setting up Project
:: 2026-09-15 09:30:02.585 Project file found at '/root/project/snap/snapcraft.yaml'
:: 2026-09-15 09:30:02.585 Loading project file 'snap/snapcraft.yaml
:: 2026-09-15 09:30:02.586 Setting up BuildPlan
:: 2026-09-15 09:30:02.586 Build plan contains 1 build(s).
:: 2026-09-15 09:30:02.589 Loading app plugin sdplug
:: 2026-09-15 09:30:02.620 Forward environment variables
:: 2026-09-15 09:30:02.620 Registering craft-sd source handlers
:: 2026-09-15 09:30:02.620 Registering craft-sd services
:: 2026-09-15 09:30:02.620 SD not enabled. Skipping adding commands
:: 2026-09-15 09:30:02.620 Request craft-sd snap installation in managed instance
:: 2026-09-15 09:30:02.621 Skipping store secrets callback registration: SD not enabled.
:: 2026-09-15 09:30:02.621 Preparing application...
:: 2026-09-15 09:30:02.621 Setting up ConfigService
:: 2026-09-15 09:30:02.621 Merging commands for group 'Lifecycle':
:: 2026-09-15 09:30:02.621 - using application command for 'clean'.
:: 2026-09-15 09:30:02.621 - using application command for 'pull'.
:: 2026-09-15 09:30:02.621 - using application command for 'build'.
:: 2026-09-15 09:30:02.621 - using application command for 'stage'.
:: 2026-09-15 09:30:02.621 - using application command for 'prime'.
:: 2026-09-15 09:30:02.621 - using application command for 'pack'.
:: 2026-09-15 09:30:02.621 Merging commands for group 'Other':
:: 2026-09-15 09:30:02.621 Running snapcraft without a command will not be possible in future releases. Use 'snapcraft pack' instead.
:: 2026-09-15 09:30:02.621 Configuring application...
:: 2026-09-15 09:30:02.626 Build plan: platform=amd64, build_for=None
:: 2026-09-15 09:30:02.626 Loading project because a directory was not provided.
:: 2026-09-15 09:30:02.627 Running 'snapcraft pack'.
:: 2026-09-15 09:30:02.627 Skipping Ubuntu Pro validation: running a non-managed command inside a managed instance.
:: 2026-09-15 09:30:02.633 Created project variables {'version': {'value': '0.1', 'updated': False, 'part-name': None}, 'grade': {'value': 'devel', 'updated': False, 'part-name': None}}.
:: 2026-09-15 09:30:02.641 Using parallel build count of 16 from CPU count
:: 2026-09-15 09:30:02.641 Checking if 'version' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'version'.
:: 2026-09-15 09:30:02.641 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:02.641 'version' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'version'.
:: 2026-09-15 09:30:02.641 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:02.641 Checking if 'version' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'version'.
:: 2026-09-15 09:30:02.641 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:02.641 'version' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'version'.
:: 2026-09-15 09:30:02.641 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:02.641 Checking if 'grade' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'grade'.
:: 2026-09-15 09:30:02.641 Got 'devel' (updated=False) for 'grade'.
:: 2026-09-15 09:30:02.641 'grade' exists.
:: 2026-09-15 09:30:02.641 Getting value for 'grade'.
:: 2026-09-15 09:30:02.641 Got 'devel' (updated=False) for 'grade'.
:: 2026-09-15 09:30:02.641 Processing grammar (on amd64 for amd64)
:: 2026-09-15 09:30:02.641 Processing grammar for plugin: kernel
:: 2026-09-15 09:30:02.641 Not processing grammar for non-grammar enabled keyword kernel-ubuntu-binary-package
:: 2026-09-15 09:30:02.641 Processing grammar for override-build: craftctl default
:: kver="$(basename "${CRAFT_PART_INSTALL}/lib/modules/"*)"
:: craftctl set version="${kver}"
:: 2026-09-15 09:30:02.642 Processing grammar for stage-packages: ['linux-firmware:amd64', 'wireless-regdb:amd64']
:: 2026-09-15 09:30:02.642 Processing grammar for stage: ['System.map-*', 'config-*', 'dtbs/*', 'modules/*', 'firmware/*', 'lib/firmware', 'lib/modules', 'vmlinuz-*']
:: 2026-09-15 09:30:02.642 Processing grammar for prime: ['System.map-*', 'config-*', 'dtbs/*', 'modules/*', 'firmware/*']
:: 2026-09-15 09:30:02.642 Processing grammar for after: ['kernel']
:: 2026-09-15 09:30:02.642 Processing grammar for plugin: initrd
:: 2026-09-15 09:30:02.642 Not processing grammar for non-grammar enabled keyword initrd-build-efi-image
:: 2026-09-15 09:30:02.642 Processing grammar for stage: ['snapd-info', 'kernel.efi']
:: 2026-09-15 09:30:02.647 Build plan contains 1 build(s).
:: 2026-09-15 09:30:02.647 Initializing lifecycle manager in /root
:: 2026-09-15 09:30:02.647 Using parallel build count of 16 from CPU count
:: 2026-09-15 09:30:02.663 get repository attribute: attr=configure, repository:<class 'craft_parts.packages.deb.Ubuntu'>
:: 2026-09-15 09:30:02.663 is_snap: True, SNAP_NAME set to snapcraft
:: 2026-09-15 09:30:02.664 load state file: /root/parts/kernel/state/pull
:: 2026-09-15 09:30:02.667 load state file: /root/parts/initrd/state/pull
:: 2026-09-15 09:30:02.672 process kernel:1
:: 2026-09-15 09:30:02.673 check if Part('kernel'):1 is dirty
:: 2026-09-15 09:30:02.673 check if Part('kernel'):1 is outdated
:: 2026-09-15 09:30:02.673 add action kernel:1(2)
:: 2026-09-15 09:30:02.673 process initrd:1
:: 2026-09-15 09:30:02.673 check if Part('initrd'):1 is dirty
:: 2026-09-15 09:30:02.673 check if Part('initrd'):1 is outdated
:: 2026-09-15 09:30:02.673 add action initrd:1(2)
:: 2026-09-15 09:30:02.673 process kernel:3
:: 2026-09-15 09:30:02.673 add action kernel:3(0)
:: 2026-09-15 09:30:02.673 process initrd:3
:: 2026-09-15 09:30:02.673 process kernel:1
:: 2026-09-15 09:30:02.673 check if Part('kernel'):1 is dirty
:: 2026-09-15 09:30:02.673 check if Part('kernel'):1 is outdated
:: 2026-09-15 09:30:02.673 add action kernel:1(2)
:: 2026-09-15 09:30:02.673 process kernel:3
:: 2026-09-15 09:30:02.673 check if Part('kernel'):3 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):3 is outdated
:: 2026-09-15 09:30:02.674 add action kernel:3(2)
:: 2026-09-15 09:30:02.674 process kernel:4
:: 2026-09-15 09:30:02.674 add action kernel:4(0)
:: 2026-09-15 09:30:02.674 add action initrd:3(0)
:: 2026-09-15 09:30:02.674 process kernel:4
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is outdated
:: 2026-09-15 09:30:02.674 add action kernel:4(2)
:: 2026-09-15 09:30:02.674 process initrd:4
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):3 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):3 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):1 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):1 is dirty
:: 2026-09-15 09:30:02.674 add action initrd:4(0)
:: 2026-09-15 09:30:02.674 process kernel:5
:: 2026-09-15 09:30:02.674 add action kernel:5(0)
:: 2026-09-15 09:30:02.674 process initrd:5
:: 2026-09-15 09:30:02.674 check if Part('kernel'):5 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):5 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):4 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):3 is outdated
:: 2026-09-15 09:30:02.674 check if Part('kernel'):3 is dirty
:: 2026-09-15 09:30:02.674 check if Part('kernel'):1 is outdated
:: 2026-09-15 09:30:02.675 check if Part('kernel'):1 is dirty
:: 2026-09-15 09:30:02.675 add action initrd:5(0)
:: 2026-09-15 09:30:02.675 Initializing lifecycle
:: 2026-09-15 09:30:02.675 plugin build packages: {'cryptsetup', 'systemd', 'flex', 'lz4', 'kpartx', 'debhelper', 'kmod', 'zstd', 'libelf-dev', 'libssl-dev', 'bison', 'xz-utils', 'gcc-x86-64-linux-gnu', 'cmake', 'binutils', 'llvm', 'cpio', 'fakeroot', 'gawk', 'libdw-dev', 'rustc', 'clang', 'bc'}
:: 2026-09-15 09:30:02.675 plugin build packages: {'dracut-core', 'fakeroot', 'curl'}
:: 2026-09-15 09:30:02.675 Installing build-packages
:: 2026-09-15 09:30:02.675 get repository attribute: attr=install_packages, repository:<class 'craft_parts.packages.deb.Ubuntu'>
:: 2026-09-15 09:30:02.675 Installing packages using apt: ['bc', 'binutils', 'bison', 'clang', 'cmake', 'cpio', 'cryptsetup', 'curl', 'debhelper', 'dracut-core', 'fakeroot', 'flex', 'gawk', 'gcc-x86-64-linux-gnu', 'kmod', 'kpartx', 'libdw-dev', 'libelf-dev', 'libssl-dev', 'llvm', 'lz4', 'rustc', 'systemd', 'xz-utils', 'zstd']
:: 2026-09-15 09:30:03.281 Marking dracut-core (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: dracut-core
:: 2026-09-15 09:30:03.282 Marking cryptsetup (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: cryptsetup
:: 2026-09-15 09:30:03.282 Marking systemd (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: systemd
:: 2026-09-15 09:30:03.282 Marking flex (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: flex
:: 2026-09-15 09:30:03.282 Marking lz4 (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: lz4
:: 2026-09-15 09:30:03.282 Marking kpartx (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: kpartx
:: 2026-09-15 09:30:03.282 Marking debhelper (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: debhelper
:: 2026-09-15 09:30:03.282 Marking kmod (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: kmod
:: 2026-09-15 09:30:03.282 Marking zstd (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: zstd
:: 2026-09-15 09:30:03.282 Marking curl (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: curl
:: 2026-09-15 09:30:03.282 Marking libelf-dev (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: libelf-dev
:: 2026-09-15 09:30:03.282 Marking libssl-dev (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: libssl-dev
:: 2026-09-15 09:30:03.282 Marking bison (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: bison
:: 2026-09-15 09:30:03.282 Marking xz-utils (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.282 package: xz-utils
:: 2026-09-15 09:30:03.283 Marking gcc-x86-64-linux-gnu (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: gcc-x86-64-linux-gnu
:: 2026-09-15 09:30:03.283 Marking cmake (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: cmake
:: 2026-09-15 09:30:03.283 Marking binutils (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: binutils
:: 2026-09-15 09:30:03.283 Marking llvm (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: llvm
:: 2026-09-15 09:30:03.283 Marking cpio (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: cpio
:: 2026-09-15 09:30:03.283 Marking fakeroot (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: fakeroot
:: 2026-09-15 09:30:03.283 Marking gawk (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: gawk
:: 2026-09-15 09:30:03.283 Marking libdw-dev (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: libdw-dev
:: 2026-09-15 09:30:03.283 Marking rustc (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: rustc
:: 2026-09-15 09:30:03.283 Marking clang (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: clang
:: 2026-09-15 09:30:03.283 Marking bc (and its dependencies) to be fetched
:: 2026-09-15 09:30:03.283 package: bc
:: 2026-09-15 09:30:03.419 Requested build-packages already installed: ['bc', 'binutils', 'bison', 'clang', 'cmake', 'cpio', 'cryptsetup', 'curl', 'debhelper', 'dracut-core', 'fakeroot', 'flex', 'gawk', 'gcc-x86-64-linux-gnu', 'kmod', 'kpartx', 'libdw-dev', 'libelf-dev', 'libssl-dev', 'llvm', 'lz4', 'rustc', 'systemd', 'xz-utils', 'zstd']
:: 2026-09-15 09:30:03.538 verify plugin environment for part 'kernel'
:: 2026-09-15 09:30:03.538 verify plugin environment for part 'initrd'
:: 2026-09-15 09:30:03.539 Checking if 'version' exists.
:: 2026-09-15 09:30:03.539 Getting value for 'version'.
:: 2026-09-15 09:30:03.539 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:03.539 'version' exists.
:: 2026-09-15 09:30:03.539 Getting value for 'version'.
:: 2026-09-15 09:30:03.539 Got '0.1' (updated=False) for 'version'.
:: 2026-09-15 09:30:03.539 Checking if 'grade' exists.
:: 2026-09-15 09:30:03.539 Getting value for 'grade'.
:: 2026-09-15 09:30:03.539 Got 'devel' (updated=False) for 'grade'.
:: 2026-09-15 09:30:03.539 'grade' exists.
:: 2026-09-15 09:30:03.539 Getting value for 'grade'.
:: 2026-09-15 09:30:03.539 Got 'devel' (updated=False) for 'grade'.
:: 2026-09-15 09:30:03.540 set repository attribute: attr=stage_packages_filters, value=None, repo:<class 'craft_parts.packages.deb.Ubuntu'>
:: 2026-09-15 09:30:03.540 Skipping pull for kernel (already ran)
:: 2026-09-15 09:30:03.540 execute action kernel:Action(part_name='kernel', step=Step.PULL, action_type=ActionType.SKIP, reason='already ran', project_vars=ProjectVarInfo(root={'grade': ProjectVar(value='devel', updated=False, part_name=None), 'version': ProjectVar(value='0.1', updated=False, part_name=None)}), properties=ActionProperties(changed_files=None, changed_dirs=None))
:: 2026-09-15 09:30:03.540 Skip execution of Action(part_name='kernel', step=Step.PULL, action_type=ActionType.SKIP, reason='already ran', project_vars=ProjectVarInfo(root={'grade': ProjectVar(value='devel', updated=False, part_name=None), 'version': ProjectVar(value='0.1', updated=False, part_name=None)}), properties=ActionProperties(changed_files=None, changed_dirs=None)) (because already ran)
:: 2026-09-15 09:30:03.541 Skipping pull for initrd (already ran)
:: 2026-09-15 09:30:03.541 execute action initrd:Action(part_name='initrd', step=Step.PULL, action_type=ActionType.SKIP, reason='already ran', project_vars=ProjectVarInfo(root={'grade': ProjectVar(value='devel', updated=False, part_name=None), 'version': ProjectVar(value='0.1', updated=False, part_name=None)}), properties=ActionProperties(changed_files=None, changed_dirs=None))
:: 2026-09-15 09:30:03.541 Skip execution of Action(part_name='initrd', step=Step.PULL, action_type=ActionType.SKIP, reason='already ran', project_vars=ProjectVarInfo(root={'grade': ProjectVar(value='devel', updated=False, part_name=None), 'version': ProjectVar(value='0.1', updated=False, part_name=None)}), properties=ActionProperties(changed_files=None, changed_dirs=None)) (because already ran)
:: 2026-09-15 09:30:03.542 Building kernel
:: 2026-09-15 09:30:03.543 execute action kernel:Action(part_name='kernel', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=ProjectVarInfo(root={}), properties=ActionProperties(changed_files=None, changed_dirs=None))
:: 2026-09-15 09:30:03.543 load state file: /root/parts/kernel/state/pull
:: 2026-09-15 09:30:03.545 get repository attribute: attr=unpack_stage_packages, repository:<class 'craft_parts.packages.deb.Ubuntu'>
:: 2026-09-15 09:30:04.860 fix artifacts: unpack_dir='/root/parts/kernel/install'
:: 2026-09-15 09:30:05.858 Executing PosixPath('/tmp/tmpzjb8enyn/scriptlet.sh')
:: 2026-09-15 09:30:05.860 :: + craftctl default
:: 2026-09-15 09:30:06.292 ctl server received: b'{"function": "default", "args": []}'
:: 2026-09-15 09:30:06.293 Executing PosixPath('/root/parts/kernel/run/build.sh')
:: 2026-09-15 09:30:06.294 :: + /snap/snapcraft/19089/lib/python3.12/site-packages/snapcraft/parts/plugins/kernel_build.sh kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=
:: 2026-09-15 09:30:06.295 :: + . /etc/os-release
:: 2026-09-15 09:30:06.296 :: + PRETTY_NAME=Ubuntu 26.04 LTS
:: 2026-09-15 09:30:06.296 :: + NAME=Ubuntu
:: 2026-09-15 09:30:06.296 :: + VERSION_ID=26.04
:: 2026-09-15 09:30:06.296 :: + VERSION=26.04 LTS (Resolute Raccoon)
:: 2026-09-15 09:30:06.296 :: Checking if previous build should be cleaned...
:: 2026-09-15 09:30:06.296 :: + VERSION_CODENAME=resolute
:: 2026-09-15 09:30:06.296 :: + ID=ubuntu
:: 2026-09-15 09:30:06.296 :: + ID_LIKE=debian
:: 2026-09-15 09:30:06.296 :: + HOME_URL=https://www.ubuntu.com/
:: 2026-09-15 09:30:06.296 :: + SUPPORT_URL=https://help.ubuntu.com/
:: 2026-09-15 09:30:06.296 :: + BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
:: 2026-09-15 09:30:06.296 :: + PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
:: 2026-09-15 09:30:06.296 :: + UBUNTU_CODENAME=resolute
:: 2026-09-15 09:30:06.296 :: + LOGO=ubuntu-logo
:: 2026-09-15 09:30:06.296 :: + required_boot=SQUASHFS
:: 2026-09-15 09:30:06.296 :: + required_generic=
:: 2026-09-15 09:30:06.296 :: DEVTMPFS
:: 2026-09-15 09:30:06.296 :: DEVTMPFS_MOUNT
:: 2026-09-15 09:30:06.296 :: TMPFS_POSIX_ACL
:: 2026-09-15 09:30:06.296 :: IPV6
:: 2026-09-15 09:30:06.296 :: SYSVIPC
:: 2026-09-15 09:30:06.296 :: SYSVIPC_SYSCTL
:: 2026-09-15 09:30:06.296 :: VFAT_FS
:: 2026-09-15 09:30:06.296 :: NLS_CODEPAGE_437
:: 2026-09-15 09:30:06.296 :: NLS_ISO8859_1
:: 2026-09-15 09:30:06.296 :: + required_security=
:: 2026-09-15 09:30:06.296 :: SECURITY
:: 2026-09-15 09:30:06.296 :: SECURITY_APPARMOR
:: 2026-09-15 09:30:06.296 :: SYN_COOKIES
:: 2026-09-15 09:30:06.296 :: STRICT_DEVMEM
:: 2026-09-15 09:30:06.297 :: DEFAULT_SECURITY_APPARMOR
:: 2026-09-15 09:30:06.297 :: SECCOMP
:: 2026-09-15 09:30:06.297 :: SECCOMP_FILTER
:: 2026-09-15 09:30:06.297 :: + required_snappy=
:: 2026-09-15 09:30:06.297 :: RD_LZMA
:: 2026-09-15 09:30:06.297 :: KEYS
:: 2026-09-15 09:30:06.297 :: ENCRYPTED_KEYS
:: 2026-09-15 09:30:06.297 :: SQUASHFS
:: 2026-09-15 09:30:06.297 :: SQUASHFS_XATTR
:: 2026-09-15 09:30:06.297 :: SQUASHFS_XZ
:: 2026-09-15 09:30:06.297 :: SQUASHFS_LZO
:: 2026-09-15 09:30:06.297 :: + required_systemd=
:: 2026-09-15 09:30:06.297 :: DEVTMPFS
:: 2026-09-15 09:30:06.297 :: CGROUPS
:: 2026-09-15 09:30:06.297 :: INOTIFY_USER
:: 2026-09-15 09:30:06.297 :: SIGNALFD
:: 2026-09-15 09:30:06.297 :: TIMERFD
:: 2026-09-15 09:30:06.297 :: EPOLL
:: 2026-09-15 09:30:06.297 :: NET
:: 2026-09-15 09:30:06.297 :: SYSFS
:: 2026-09-15 09:30:06.297 :: PROC_FS
:: 2026-09-15 09:30:06.297 :: FHANDLE
:: 2026-09-15 09:30:06.297 :: BLK_DEV_BSG
:: 2026-09-15 09:30:06.297 :: NET_NS
:: 2026-09-15 09:30:06.297 :: IPV6
:: 2026-09-15 09:30:06.297 :: AUTOFS4_FS
:: 2026-09-15 09:30:06.297 :: TMPFS_POSIX_ACL
:: 2026-09-15 09:30:06.297 :: TMPFS_XATTR
:: 2026-09-15 09:30:06.297 :: SECCOMP
:: 2026-09-15 09:30:06.297 :: + build_target=bzImage modules
:: 2026-09-15 09:30:06.297 :: + readonly required_generic required_security required_snappy required_systemd required_boot build_target
:: 2026-09-15 09:30:06.297 :: + parse_args kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=
:: 2026-09-15 09:30:06.297 :: + kernel_kdefconfig=defconfig
:: 2026-09-15 09:30:06.297 :: + kernel_kconfigs=
:: 2026-09-15 09:30:06.297 :: + kernel_tools=
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_kconfigflavour=generic
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_release_name=None
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_abinumber=
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_binary_package=True
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_debian_package=False
:: 2026-09-15 09:30:06.297 :: + kernel_ubuntu_debian_dkms=
:: 2026-09-15 09:30:06.297 :: + [ True = True ]
:: 2026-09-15 09:30:06.297 :: + KERNEL_SRC=/root/parts/kernel/install
:: 2026-09-15 09:30:06.297 :: + run
:: 2026-09-15 09:30:06.297 :: + echo Checking if previous build should be cleaned...
:: 2026-09-15 09:30:06.297 :: + [ ! -e /root/parts/kernel/install/firmware ]
:: 2026-09-15 09:30:06.297 :: + [ ! -L /root/parts/kernel/install/lib/firmware ]
:: 2026-09-15 09:30:06.298 :: + [ ! -e /root/parts/kernel/install/modules ]
:: 2026-09-15 09:30:06.298 :: + [ ! -L /root/parts/kernel/install/lib/modules ]
:: 2026-09-15 09:30:06.298 :: + [ -n generic ]
:: 2026-09-15 09:30:06.298 :: + kconfigflavour=generic
:: 2026-09-15 09:30:06.298 :: + validate_kdefconfigs
:: 2026-09-15 09:30:06.298 :: + [ defconfig != defconfig ]
:: 2026-09-15 09:30:06.298 :: + [ True = True ]
:: 2026-09-15 09:30:06.298 :: + build_bin_pkg
:: 2026-09-15 09:30:06.298 :: + [ -z ]
:: 2026-09-15 09:30:06.298 :: + apt info linux-image-generic
:: 2026-09-15 09:30:06.298 :: + grep ^Version:
:: 2026-09-15 09:30:06.298 :: + cut -d -f2
:: 2026-09-15 09:30:06.298 ::
:: 2026-09-15 09:30:06.298 :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
:: 2026-09-15 09:30:06.298 ::
:: 2026-09-15 09:30:06.762 :: + kver=7.0.0-31.31
:: 2026-09-15 09:30:06.762 :: + normalize_kernel_version 7.0.0-31.31
:: 2026-09-15 09:30:06.763 :: + version=7.0.0-31.31
:: 2026-09-15 09:30:06.763 :: + printf %s\n 7.0.0-31.31
:: 2026-09-15 09:30:06.763 :: + sed -E s/^([0-9]+\.[0-9]+\.[0-9]+)[.-]([0-9]+)[.-].*$/\1-\2/
:: 2026-09-15 09:30:06.764 :: + kver=7.0.0-31
:: 2026-09-15 09:30:06.764 :: + fetch_deb 7.0.0-31 generic
:: 2026-09-15 09:30:06.764 :: + _kver=7.0.0-31
:: 2026-09-15 09:30:06.764 :: + _flavour=generic
:: 2026-09-15 09:30:06.764 :: + apt download linux-image-7.0.0-31-generic:amd64
:: 2026-09-15 09:30:06.767 ::
:: 2026-09-15 09:30:06.767 :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
:: 2026-09-15 09:30:06.767 ::
:: 2026-09-15 09:30:06.877 :: + apt download linux-modules-7.0.0-31-generic:amd64
:: 2026-09-15 09:30:06.879 ::
:: 2026-09-15 09:30:06.880 :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
:: 2026-09-15 09:30:06.880 ::
:: 2026-09-15 09:30:06.986 :: + apt download linux-modules-extra-7.0.0-31-generic:amd64
:: 2026-09-15 09:30:06.989 ::
:: 2026-09-15 09:30:06.989 :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
:: 2026-09-15 09:30:06.989 ::
:: 2026-09-15 09:30:07.123 :: Error: Unable to locate package linux-modules-extra-7.0.0-31-generic:amd64
:: 2026-09-15 09:30:07.123 :: Error: Couldn't find any package by glob 'linux-modules-extra-7.0.0-31-generic'
:: 2026-09-15 09:30:07.123 :: + echo No candidate for linux-modules-extra-7.0.0-31-generic found
:: 2026-09-15 09:30:07.123 :: No candidate for linux-modules-extra-7.0.0-31-generic found
:: 2026-09-15 09:30:07.123 :: + repack_deb 7.0.0-31 generic
:: 2026-09-15 09:30:07.123 :: + _kver=7.0.0-31
:: 2026-09-15 09:30:07.123 :: + _flavour=generic
:: 2026-09-15 09:30:07.123 :: + dpkg -x /root/parts/kernel/build/linux-image-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install
:: 2026-09-15 09:30:07.150 :: + dpkg -x /root/parts/kernel/build/linux-modules-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install
:: 2026-09-15 09:30:07.356 :: + mv -f /root/parts/kernel/install/boot/System.map-7.0.0-31-generic /root/parts/kernel/install/boot/config-7.0.0-31-generic /root/parts/kernel/install/boot/vmlinuz-7.0.0-31-generic /root/parts/kernel/install
:: 2026-09-15 09:30:07.361 :: + ln -f /root/parts/kernel/install/vmlinuz-7.0.0-31-generic /root/parts/kernel/install/vmlinuz
:: 2026-09-15 09:30:07.365 :: + rmdir /root/parts/kernel/install/boot
:: 2026-09-15 09:30:07.367 :: + basename /root/parts/kernel/install/lib/modules/*
:: 2026-09-15 09:30:07.369 :: + kver=*
:: 2026-09-15 09:30:07.369 :: + create_snap_structure
:: 2026-09-15 09:30:07.369 :: + echo Finalizing install directory...
:: 2026-09-15 09:30:07.369 :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: 2026-09-15 09:30:07.369 :: Finalizing install directory...
:: 2026-09-15 09:30:07.369 :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
:: 2026-09-15 09:30:07.371 Failed to run the build script for part 'kernel'.
:: 2026-09-15 09:30:07.371 Detailed information:
:: :: + create_snap_structure
:: :: + echo Finalizing install directory...
:: :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
:: 2026-09-15 09:30:07.374 Traceback (most recent call last):
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 183, in _builtin_build
:: 2026-09-15 09:30:07.374 _create_and_run_script(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 642, in _create_and_run_script
:: 2026-09-15 09:30:07.374 process.run(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 186, in run
:: 2026-09-15 09:30:07.374 result.check_returncode()
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 52, in check_returncode
:: 2026-09-15 09:30:07.374 raise ProcessError(self)
:: 2026-09-15 09:30:07.374 craft_parts.utils.process.ProcessError: ProcessResult(returncode=1, stdout=b'Checking if previous build should be cleaned...\nNo candidate for linux-modules-extra-7.0.0-31-generic found\nFinalizing install directory...\n', stderr=b"+ /snap/snapcraft/19089/lib/python3.12/site-packages/snapcraft/parts/plugins/kernel_build.sh kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ . /etc/os-release\n+ PRETTY_NAME=Ubuntu 26.04 LTS\n+ NAME=Ubuntu\n+ VERSION_ID=26.04\n+ VERSION=26.04 LTS (Resolute Raccoon)\n+ VERSION_CODENAME=resolute\n+ ID=ubuntu\n+ ID_LIKE=debian\n+ HOME_URL=https://www.ubuntu.com/\n+ SUPPORT_URL=https://help.ubuntu.com/\n+ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/\n+ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\n+ UBUNTU_CODENAME=resolute\n+ LOGO=ubuntu-logo\n+ required_boot=SQUASHFS\n+ required_generic=\n DEVTMPFS\n DEVTMPFS_MOUNT\n TMPFS_POSIX_ACL\n IPV6\n SYSVIPC\n SYSVIPC_SYSCTL\n VFAT_FS\n NLS_CODEPAGE_437\n NLS_ISO8859_1\n+ required_security=\n SECURITY\n SECURITY_APPARMOR\n SYN_COOKIES\n STRICT_DEVMEM\n DEFAULT_SECURITY_APPARMOR\n SECCOMP\n SECCOMP_FILTER\n+ required_snappy=\n RD_LZMA\n KEYS\n ENCRYPTED_KEYS\n SQUASHFS\n SQUASHFS_XATTR\n SQUASHFS_XZ\n SQUASHFS_LZO\n+ required_systemd=\n DEVTMPFS\n CGROUPS\n INOTIFY_USER\n SIGNALFD\n TIMERFD\n EPOLL\n NET\n SYSFS\n PROC_FS\n FHANDLE\n BLK_DEV_BSG\n NET_NS\n IPV6\n AUTOFS4_FS\n TMPFS_POSIX_ACL\n TMPFS_XATTR\n SECCOMP\n+ build_target=bzImage modules\n+ readonly required_generic required_security required_snappy required_systemd required_boot build_target\n+ parse_args kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ kernel_kdefconfig=defconfig\n+ kernel_kconfigs=\n+ kernel_tools=\n+ kernel_ubuntu_kconfigflavour=generic\n+ kernel_ubuntu_release_name=None\n+ kernel_ubuntu_abinumber=\n+ kernel_ubuntu_binary_package=True\n+ kernel_ubuntu_debian_package=False\n+ kernel_ubuntu_debian_dkms=\n+ [ True = True ]\n+ KERNEL_SRC=/root/parts/kernel/install\n+ run\n+ echo Checking if previous build should be cleaned...\n+ [ ! -e /root/parts/kernel/install/firmware ]\n+ [ ! -L /root/parts/kernel/install/lib/firmware ]\n+ [ ! -e /root/parts/kernel/install/modules ]\n+ [ ! -L /root/parts/kernel/install/lib/modules ]\n+ [ -n generic ]\n+ kconfigflavour=generic\n+ validate_kdefconfigs\n+ [ defconfig != defconfig ]\n+ [ True = True ]\n+ build_bin_pkg\n+ [ -z ]\n+ apt info linux-image-generic\n+ grep ^Version: \n+ cut -d -f2\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ kver=7.0.0-31.31\n+ normalize_kernel_version 7.0.0-31.31\n+ version=7.0.0-31.31\n+ printf %s\\n 7.0.0-31.31\n+ sed -E s/^([0-9]+\\.[0-9]+\\.[0-9]+)[.-]([0-9]+)[.-].*$/\\1-\\2/\n+ kver=7.0.0-31\n+ fetch_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ apt download linux-image-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-extra-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nError: Unable to locate package linux-modules-extra-7.0.0-31-generic:amd64\nError: Couldn't find any package by glob 'linux-modules-extra-7.0.0-31-generic'\n+ echo No candidate for linux-modules-extra-7.0.0-31-generic found\n+ repack_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ dpkg -x /root/parts/kernel/build/linux-image-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ dpkg -x /root/parts/kernel/build/linux-modules-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ mv -f /root/parts/kernel/install/boot/System.map-7.0.0-31-generic /root/parts/kernel/install/boot/config-7.0.0-31-generic /root/parts/kernel/install/boot/vmlinuz-7.0.0-31-generic /root/parts/kernel/install\n+ ln -f /root/parts/kernel/install/vmlinuz-7.0.0-31-generic /root/parts/kernel/install/vmlinuz\n+ rmdir /root/parts/kernel/install/boot\n+ basename /root/parts/kernel/install/lib/modules/*\n+ kver=*\n+ create_snap_structure\n+ echo Finalizing install directory...\n+ mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install\nmv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory\n", combined=b"+ /snap/snapcraft/19089/lib/python3.12/site-packages/snapcraft/parts/plugins/kernel_build.sh kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ . /etc/os-release\n+ PRETTY_NAME=Ubuntu 26.04 LTS\n+ NAME=Ubuntu\n+ VERSION_ID=26.04\n+ VERSION=26.04 LTS (Resolute Raccoon)\nChecking if previous build should be cleaned...\n+ VERSION_CODENAME=resolute\n+ ID=ubuntu\n+ ID_LIKE=debian\n+ HOME_URL=https://www.ubuntu.com/\n+ SUPPORT_URL=https://help.ubuntu.com/\n+ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/\n+ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\n+ UBUNTU_CODENAME=resolute\n+ LOGO=ubuntu-logo\n+ required_boot=SQUASHFS\n+ required_generic=\n DEVTMPFS\n DEVTMPFS_MOUNT\n TMPFS_POSIX_ACL\n IPV6\n SYSVIPC\n SYSVIPC_SYSCTL\n VFAT_FS\n NLS_CODEPAGE_437\n NLS_ISO8859_1\n+ required_security=\n SECURITY\n SECURITY_APPARMOR\n SYN_COOKIES\n STRICT_DEVMEM\n DEFAULT_SECURITY_APPARMOR\n SECCOMP\n SECCOMP_FILTER\n+ required_snappy=\n RD_LZMA\n KEYS\n ENCRYPTED_KEYS\n SQUASHFS\n SQUASHFS_XATTR\n SQUASHFS_XZ\n SQUASHFS_LZO\n+ required_systemd=\n DEVTMPFS\n CGROUPS\n INOTIFY_USER\n SIGNALFD\n TIMERFD\n EPOLL\n NET\n SYSFS\n PROC_FS\n FHANDLE\n BLK_DEV_BSG\n NET_NS\n IPV6\n AUTOFS4_FS\n TMPFS_POSIX_ACL\n TMPFS_XATTR\n SECCOMP\n+ build_target=bzImage modules\n+ readonly required_generic required_security required_snappy required_systemd required_boot build_target\n+ parse_args kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ kernel_kdefconfig=defconfig\n+ kernel_kconfigs=\n+ kernel_tools=\n+ kernel_ubuntu_kconfigflavour=generic\n+ kernel_ubuntu_release_name=None\n+ kernel_ubuntu_abinumber=\n+ kernel_ubuntu_binary_package=True\n+ kernel_ubuntu_debian_package=False\n+ kernel_ubuntu_debian_dkms=\n+ [ True = True ]\n+ KERNEL_SRC=/root/parts/kernel/install\n+ run\n+ echo Checking if previous build should be cleaned...\n+ [ ! -e /root/parts/kernel/install/firmware ]\n+ [ ! -L /root/parts/kernel/install/lib/firmware ]\n+ [ ! -e /root/parts/kernel/install/modules ]\n+ [ ! -L /root/parts/kernel/install/lib/modules ]\n+ [ -n generic ]\n+ kconfigflavour=generic\n+ validate_kdefconfigs\n+ [ defconfig != defconfig ]\n+ [ True = True ]\n+ build_bin_pkg\n+ [ -z ]\n+ apt info linux-image-generic\n+ grep ^Version: \n+ cut -d -f2\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ kver=7.0.0-31.31\n+ normalize_kernel_version 7.0.0-31.31\n+ version=7.0.0-31.31\n+ printf %s\\n 7.0.0-31.31\n+ sed -E s/^([0-9]+\\.[0-9]+\\.[0-9]+)[.-]([0-9]+)[.-].*$/\\1-\\2/\n+ kver=7.0.0-31\n+ fetch_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ apt download linux-image-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-extra-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nError: Unable to locate package linux-modules-extra-7.0.0-31-generic:amd64\nError: Couldn't find any package by glob 'linux-modules-extra-7.0.0-31-generic'\n+ echo No candidate for linux-modules-extra-7.0.0-31-generic found\n+ repack_debNo candidate for linux-modules-extra-7.0.0-31-generic found\n 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ dpkg -x /root/parts/kernel/build/linux-image-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ dpkg -x /root/parts/kernel/build/linux-modules-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ mv -f /root/parts/kernel/install/boot/System.map-7.0.0-31-generic /root/parts/kernel/install/boot/config-7.0.0-31-generic /root/parts/kernel/install/boot/vmlinuz-7.0.0-31-generic /root/parts/kernel/install\n+ ln -f /root/parts/kernel/install/vmlinuz-7.0.0-31-generic /root/parts/kernel/install/vmlinuz\n+ rmdir /root/parts/kernel/install/boot\n+ basename /root/parts/kernel/install/lib/modules/*\n+ kver=*\n+ create_snap_structure\n+ echo Finalizing install directory...\n+ mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install\nFinalizing install directory...\nmv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory\n", command=[PosixPath('/root/parts/kernel/run/build.sh')])
:: 2026-09-15 09:30:07.374
:: 2026-09-15 09:30:07.374 The above exception was the direct cause of the following exception:
:: 2026-09-15 09:30:07.374 Traceback (most recent call last):
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 368, in run
:: 2026-09-15 09:30:07.374 self._exec(actions)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 392, in _exec
:: 2026-09-15 09:30:07.374 aex.execute(action, stdout=stream, stderr=stream)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 372, in execute
:: 2026-09-15 09:30:07.374 self._executor.execute(actions, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 165, in execute
:: 2026-09-15 09:30:07.374 self._run_action(act, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 258, in _run_action
:: 2026-09-15 09:30:07.374 handler.run_action(action, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 312, in run_action
:: 2026-09-15 09:30:07.374 state = handler(step_info, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:30:07.374 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 476, in _run_build
:: 2026-09-15 09:30:07.374 self._run_step(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 698, in _run_step
:: 2026-09-15 09:30:07.374 step_handler.run_scriptlet(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 407, in run_scriptlet
:: 2026-09-15 09:30:07.374 _create_and_run_script(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 642, in _create_and_run_script
:: 2026-09-15 09:30:07.374 process.run(
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 164, in run
:: 2026-09-15 09:30:07.374 callback(key.fileobj, mask)
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 502, in read
:: 2026-09-15 09:30:07.374 retval = self._handle_control_api(
:: 2026-09-15 09:30:07.374 ^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:30:07.374 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 537, in _handle_control_api
:: 2026-09-15 09:30:07.375 return self._process_api_commands(
:: 2026-09-15 09:30:07.375 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:30:07.375 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 558, in _process_api_commands
:: 2026-09-15 09:30:07.375 self._execute_builtin_handler(step)
:: 2026-09-15 09:30:07.375 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 610, in _execute_builtin_handler
:: 2026-09-15 09:30:07.375 self._builtin_build()
:: 2026-09-15 09:30:07.375 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 192, in _builtin_build
:: 2026-09-15 09:30:07.375 raise errors.PluginBuildError(
:: 2026-09-15 09:30:07.375 craft_parts.errors.PluginBuildError: Failed to run the build script for part 'kernel'.
:: 2026-09-15 09:30:07.375
:: 2026-09-15 09:30:07.375 :: + create_snap_structure
:: 2026-09-15 09:30:07.375 :: + echo Finalizing install directory...
:: 2026-09-15 09:30:07.375 :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: 2026-09-15 09:30:07.375 :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
:: 2026-09-15 09:30:07.375 Check the build output and verify the project can work with the 'kernel' plugin.
:: 2026-09-15 09:30:07.375 Recommended resolution: Check the build output and verify the project can work with the 'kernel' plugin.
:: 2026-09-15 09:30:07.375 For more information, check out: https://documentation.ubuntu.com/snapcraft/9/reference/plugins/
:: 2026-09-15 09:30:07.375 Full execution log: '/tmp/snapcraft.log'
:: 2026-09-15 09:30:07.375 Launching shell on build environment...
:: 2026-09-15 09:30:07.375 Emitter: Pausing control of the terminal
:: 2026-09-15 09:31:59.839 Emitter: Resuming control of the terminal
:: 2026-09-15 09:31:59.839 Failed to run the build script for part 'kernel'.
:: 2026-09-15 09:31:59.839 Detailed information:
:: :: + create_snap_structure
:: :: + echo Finalizing install directory...
:: :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
:: 2026-09-15 09:31:59.840 Traceback (most recent call last):
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 183, in _builtin_build
:: 2026-09-15 09:31:59.841 _create_and_run_script(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 642, in _create_and_run_script
:: 2026-09-15 09:31:59.841 process.run(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 186, in run
:: 2026-09-15 09:31:59.841 result.check_returncode()
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 52, in check_returncode
:: 2026-09-15 09:31:59.841 raise ProcessError(self)
:: 2026-09-15 09:31:59.841 craft_parts.utils.process.ProcessError: ProcessResult(returncode=1, stdout=b'Checking if previous build should be cleaned...\nNo candidate for linux-modules-extra-7.0.0-31-generic found\nFinalizing install directory...\n', stderr=b"+ /snap/snapcraft/19089/lib/python3.12/site-packages/snapcraft/parts/plugins/kernel_build.sh kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ . /etc/os-release\n+ PRETTY_NAME=Ubuntu 26.04 LTS\n+ NAME=Ubuntu\n+ VERSION_ID=26.04\n+ VERSION=26.04 LTS (Resolute Raccoon)\n+ VERSION_CODENAME=resolute\n+ ID=ubuntu\n+ ID_LIKE=debian\n+ HOME_URL=https://www.ubuntu.com/\n+ SUPPORT_URL=https://help.ubuntu.com/\n+ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/\n+ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\n+ UBUNTU_CODENAME=resolute\n+ LOGO=ubuntu-logo\n+ required_boot=SQUASHFS\n+ required_generic=\n DEVTMPFS\n DEVTMPFS_MOUNT\n TMPFS_POSIX_ACL\n IPV6\n SYSVIPC\n SYSVIPC_SYSCTL\n VFAT_FS\n NLS_CODEPAGE_437\n NLS_ISO8859_1\n+ required_security=\n SECURITY\n SECURITY_APPARMOR\n SYN_COOKIES\n STRICT_DEVMEM\n DEFAULT_SECURITY_APPARMOR\n SECCOMP\n SECCOMP_FILTER\n+ required_snappy=\n RD_LZMA\n KEYS\n ENCRYPTED_KEYS\n SQUASHFS\n SQUASHFS_XATTR\n SQUASHFS_XZ\n SQUASHFS_LZO\n+ required_systemd=\n DEVTMPFS\n CGROUPS\n INOTIFY_USER\n SIGNALFD\n TIMERFD\n EPOLL\n NET\n SYSFS\n PROC_FS\n FHANDLE\n BLK_DEV_BSG\n NET_NS\n IPV6\n AUTOFS4_FS\n TMPFS_POSIX_ACL\n TMPFS_XATTR\n SECCOMP\n+ build_target=bzImage modules\n+ readonly required_generic required_security required_snappy required_systemd required_boot build_target\n+ parse_args kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ kernel_kdefconfig=defconfig\n+ kernel_kconfigs=\n+ kernel_tools=\n+ kernel_ubuntu_kconfigflavour=generic\n+ kernel_ubuntu_release_name=None\n+ kernel_ubuntu_abinumber=\n+ kernel_ubuntu_binary_package=True\n+ kernel_ubuntu_debian_package=False\n+ kernel_ubuntu_debian_dkms=\n+ [ True = True ]\n+ KERNEL_SRC=/root/parts/kernel/install\n+ run\n+ echo Checking if previous build should be cleaned...\n+ [ ! -e /root/parts/kernel/install/firmware ]\n+ [ ! -L /root/parts/kernel/install/lib/firmware ]\n+ [ ! -e /root/parts/kernel/install/modules ]\n+ [ ! -L /root/parts/kernel/install/lib/modules ]\n+ [ -n generic ]\n+ kconfigflavour=generic\n+ validate_kdefconfigs\n+ [ defconfig != defconfig ]\n+ [ True = True ]\n+ build_bin_pkg\n+ [ -z ]\n+ apt info linux-image-generic\n+ grep ^Version: \n+ cut -d -f2\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ kver=7.0.0-31.31\n+ normalize_kernel_version 7.0.0-31.31\n+ version=7.0.0-31.31\n+ printf %s\\n 7.0.0-31.31\n+ sed -E s/^([0-9]+\\.[0-9]+\\.[0-9]+)[.-]([0-9]+)[.-].*$/\\1-\\2/\n+ kver=7.0.0-31\n+ fetch_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ apt download linux-image-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-extra-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nError: Unable to locate package linux-modules-extra-7.0.0-31-generic:amd64\nError: Couldn't find any package by glob 'linux-modules-extra-7.0.0-31-generic'\n+ echo No candidate for linux-modules-extra-7.0.0-31-generic found\n+ repack_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ dpkg -x /root/parts/kernel/build/linux-image-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ dpkg -x /root/parts/kernel/build/linux-modules-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ mv -f /root/parts/kernel/install/boot/System.map-7.0.0-31-generic /root/parts/kernel/install/boot/config-7.0.0-31-generic /root/parts/kernel/install/boot/vmlinuz-7.0.0-31-generic /root/parts/kernel/install\n+ ln -f /root/parts/kernel/install/vmlinuz-7.0.0-31-generic /root/parts/kernel/install/vmlinuz\n+ rmdir /root/parts/kernel/install/boot\n+ basename /root/parts/kernel/install/lib/modules/*\n+ kver=*\n+ create_snap_structure\n+ echo Finalizing install directory...\n+ mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install\nmv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory\n", combined=b"+ /snap/snapcraft/19089/lib/python3.12/site-packages/snapcraft/parts/plugins/kernel_build.sh kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ . /etc/os-release\n+ PRETTY_NAME=Ubuntu 26.04 LTS\n+ NAME=Ubuntu\n+ VERSION_ID=26.04\n+ VERSION=26.04 LTS (Resolute Raccoon)\nChecking if previous build should be cleaned...\n+ VERSION_CODENAME=resolute\n+ ID=ubuntu\n+ ID_LIKE=debian\n+ HOME_URL=https://www.ubuntu.com/\n+ SUPPORT_URL=https://help.ubuntu.com/\n+ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/\n+ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\n+ UBUNTU_CODENAME=resolute\n+ LOGO=ubuntu-logo\n+ required_boot=SQUASHFS\n+ required_generic=\n DEVTMPFS\n DEVTMPFS_MOUNT\n TMPFS_POSIX_ACL\n IPV6\n SYSVIPC\n SYSVIPC_SYSCTL\n VFAT_FS\n NLS_CODEPAGE_437\n NLS_ISO8859_1\n+ required_security=\n SECURITY\n SECURITY_APPARMOR\n SYN_COOKIES\n STRICT_DEVMEM\n DEFAULT_SECURITY_APPARMOR\n SECCOMP\n SECCOMP_FILTER\n+ required_snappy=\n RD_LZMA\n KEYS\n ENCRYPTED_KEYS\n SQUASHFS\n SQUASHFS_XATTR\n SQUASHFS_XZ\n SQUASHFS_LZO\n+ required_systemd=\n DEVTMPFS\n CGROUPS\n INOTIFY_USER\n SIGNALFD\n TIMERFD\n EPOLL\n NET\n SYSFS\n PROC_FS\n FHANDLE\n BLK_DEV_BSG\n NET_NS\n IPV6\n AUTOFS4_FS\n TMPFS_POSIX_ACL\n TMPFS_XATTR\n SECCOMP\n+ build_target=bzImage modules\n+ readonly required_generic required_security required_snappy required_systemd required_boot build_target\n+ parse_args kernel-kdefconfig=defconfig kernel-kconfigs= kernel-tools= kernel-ubuntu-kconfigflavour=generic kernel-ubuntu-release-name=None kernel-ubuntu-abinumber= kernel-ubuntu-binary-package=True kernel-ubuntu-debian-package=False kernel-ubuntu-debian-dkms=\n+ kernel_kdefconfig=defconfig\n+ kernel_kconfigs=\n+ kernel_tools=\n+ kernel_ubuntu_kconfigflavour=generic\n+ kernel_ubuntu_release_name=None\n+ kernel_ubuntu_abinumber=\n+ kernel_ubuntu_binary_package=True\n+ kernel_ubuntu_debian_package=False\n+ kernel_ubuntu_debian_dkms=\n+ [ True = True ]\n+ KERNEL_SRC=/root/parts/kernel/install\n+ run\n+ echo Checking if previous build should be cleaned...\n+ [ ! -e /root/parts/kernel/install/firmware ]\n+ [ ! -L /root/parts/kernel/install/lib/firmware ]\n+ [ ! -e /root/parts/kernel/install/modules ]\n+ [ ! -L /root/parts/kernel/install/lib/modules ]\n+ [ -n generic ]\n+ kconfigflavour=generic\n+ validate_kdefconfigs\n+ [ defconfig != defconfig ]\n+ [ True = True ]\n+ build_bin_pkg\n+ [ -z ]\n+ apt info linux-image-generic\n+ grep ^Version: \n+ cut -d -f2\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ kver=7.0.0-31.31\n+ normalize_kernel_version 7.0.0-31.31\n+ version=7.0.0-31.31\n+ printf %s\\n 7.0.0-31.31\n+ sed -E s/^([0-9]+\\.[0-9]+\\.[0-9]+)[.-]([0-9]+)[.-].*$/\\1-\\2/\n+ kver=7.0.0-31\n+ fetch_deb 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ apt download linux-image-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n+ apt download linux-modules-extra-7.0.0-31-generic:amd64\n\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\nError: Unable to locate package linux-modules-extra-7.0.0-31-generic:amd64\nError: Couldn't find any package by glob 'linux-modules-extra-7.0.0-31-generic'\n+ echo No candidate for linux-modules-extra-7.0.0-31-generic found\n+ repack_debNo candidate for linux-modules-extra-7.0.0-31-generic found\n 7.0.0-31 generic\n+ _kver=7.0.0-31\n+ _flavour=generic\n+ dpkg -x /root/parts/kernel/build/linux-image-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ dpkg -x /root/parts/kernel/build/linux-modules-7.0.0-31-generic_7.0.0-31.31_amd64.deb /root/parts/kernel/install\n+ mv -f /root/parts/kernel/install/boot/System.map-7.0.0-31-generic /root/parts/kernel/install/boot/config-7.0.0-31-generic /root/parts/kernel/install/boot/vmlinuz-7.0.0-31-generic /root/parts/kernel/install\n+ ln -f /root/parts/kernel/install/vmlinuz-7.0.0-31-generic /root/parts/kernel/install/vmlinuz\n+ rmdir /root/parts/kernel/install/boot\n+ basename /root/parts/kernel/install/lib/modules/*\n+ kver=*\n+ create_snap_structure\n+ echo Finalizing install directory...\n+ mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install\nFinalizing install directory...\nmv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory\n", command=[PosixPath('/root/parts/kernel/run/build.sh')])
:: 2026-09-15 09:31:59.841
:: 2026-09-15 09:31:59.841 The above exception was the direct cause of the following exception:
:: 2026-09-15 09:31:59.841 Traceback (most recent call last):
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 368, in run
:: 2026-09-15 09:31:59.841 self._exec(actions)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_application/services/lifecycle.py", line 392, in _exec
:: 2026-09-15 09:31:59.841 aex.execute(action, stdout=stream, stderr=stream)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 372, in execute
:: 2026-09-15 09:31:59.841 self._executor.execute(actions, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 165, in execute
:: 2026-09-15 09:31:59.841 self._run_action(act, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/executor.py", line 258, in _run_action
:: 2026-09-15 09:31:59.841 handler.run_action(action, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 312, in run_action
:: 2026-09-15 09:31:59.841 state = handler(step_info, stdout=stdout, stderr=stderr)
:: 2026-09-15 09:31:59.841 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 476, in _run_build
:: 2026-09-15 09:31:59.841 self._run_step(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/part_handler.py", line 698, in _run_step
:: 2026-09-15 09:31:59.841 step_handler.run_scriptlet(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 407, in run_scriptlet
:: 2026-09-15 09:31:59.841 _create_and_run_script(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 642, in _create_and_run_script
:: 2026-09-15 09:31:59.841 process.run(
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/utils/process.py", line 164, in run
:: 2026-09-15 09:31:59.841 callback(key.fileobj, mask)
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 502, in read
:: 2026-09-15 09:31:59.841 retval = self._handle_control_api(
:: 2026-09-15 09:31:59.841 ^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 537, in _handle_control_api
:: 2026-09-15 09:31:59.841 return self._process_api_commands(
:: 2026-09-15 09:31:59.841 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
:: 2026-09-15 09:31:59.841 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 558, in _process_api_commands
:: 2026-09-15 09:31:59.841 self._execute_builtin_handler(step)
:: 2026-09-15 09:31:59.842 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 610, in _execute_builtin_handler
:: 2026-09-15 09:31:59.842 self._builtin_build()
:: 2026-09-15 09:31:59.842 File "/snap/snapcraft/19089/lib/python3.12/site-packages/craft_parts/executor/step_handler.py", line 192, in _builtin_build
:: 2026-09-15 09:31:59.842 raise errors.PluginBuildError(
:: 2026-09-15 09:31:59.842 craft_parts.errors.PluginBuildError: Failed to run the build script for part 'kernel'.
:: 2026-09-15 09:31:59.842
:: 2026-09-15 09:31:59.842 :: + create_snap_structure
:: 2026-09-15 09:31:59.842 :: + echo Finalizing install directory...
:: 2026-09-15 09:31:59.842 :: + mv -f /root/parts/kernel/install/lib/modules /root/parts/kernel/install
:: 2026-09-15 09:31:59.842 :: mv: cannot stat '/root/parts/kernel/install/lib/modules': No such file or directory
:: 2026-09-15 09:31:59.842 Check the build output and verify the project can work with the 'kernel' plugin.
:: 2026-09-15 09:31:59.842 Recommended resolution: Check the build output and verify the project can work with the 'kernel' plugin.
:: 2026-09-15 09:31:59.842 For more information, check out: https://documentation.ubuntu.com/snapcraft/9/reference/plugins/
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR canonical/snapcraft#6425 (commit be405aad6), updating the kernel plugin to handle modules packaged under usr/lib on usrmerged core26 systems. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed core26 kernel builds on usrmerged systems by handling modules under usr/lib; merged in canonical/snapcraft#6425 via commit be405aad6. | |
| qwen/qwen3.6-35b-a3b |
Impact:
75
Quick Win:
49
Staleness:
5
Complexity:
35
Confidence:
85
Support Request:
5
|
keep open | Kernel plugin fails to build core26 kernel snaps due to missing usrmerge symlinks. PR #6425 is open to address this. | |
| qwen/qwen3.6-35b-a3b |
Impact:
80
Quick Win:
44
Staleness:
5
Complexity:
45
Confidence:
85
Support Request:
0
|
needs triage | Kernel plugin fails on core26 due to usrmerge: modules installed at usr/lib/modules instead of lib/modules, causing create_snap_structure() to fail |
Update history
| Date | Change |
|---|---|
| closed | |
| updated | |
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#6425
(confidence 100%)
Merged kernel-plugin usrmerge fix corresponding to commit be405aad6.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1606903 kernel plugin: can't snap a kernel using launchpad | snapcraft (launchpad) | closed | Fixed by merged PR canonical/snapcraft#903 (commit 603948e1d), allowing Store part downloads without snapcraft login and resolving Launchpad kernel builds. | |
| #1675029 kernel plugin: the modprobe output parsing is wrong | snapcraft (launchpad) | closed | Fixed by merged PR snapcraft/snapcraft#1208 (commit 6c8d85ee3), correcting kernel-plugin modprobe parsing to use the module path from the second output item. | |
| #1624 kernel plugin: use latest stable core snap | snapcraft | merged | Merged PR #1624 via commit aa8a8429b, changing the kernel plugin to use the stable core snap instead of obsolete ubuntu-core and updating tests. | |
| #6425 fix(plugins/kernel): handle usrmerge | snapcraft | closed | Merged as be405aad6 via #6425, updating kernel-plugin paths to support usrmerged Linux packages and fix core26 build failures. | |
| #4112 plugins: kernel plugin: fix core20 base builds | snapcraft | merged | Merged PR #4112 as commit 577c6c22e, fixing core20 kernel builds to invoke apt-get with sudo only when required. | |
| #1627923 kernel plugin initrd packaging fails when kernel modules have common dependencies | snapcraft (launchpad) | closed | Fixed by snapcore/snapcraft PR #837, which allowed initrd packaging to handle common kernel-module dependencies without duplicate-copy failures. | |
| #1759592 kernel build fails for lack of modprobe | snapcraft (launchpad) | closed | Kernel builds on Launchpad failed because modprobe was missing. Fixed by snapcore/snapcraft PR #2041, merged as commit 327552751, adding kmod to the kernel plugin's build-packages (plus /sbin on PATH); LP bug closed as fixed. | |
| #1242 kernel_plugin: use CROSS_COMPILE to override the default toolchain | snapcraft | merged | Merged snapcore/snapcraft#1242, letting kernel_plugin honor CROSS_COMPILE to override the default toolchain; commit c096cb92f. | |
| #4104 plugins: kernel plugin fixes and spread tests | snapcraft | merged | Merged PR #4104 (commit ad47bfae7, CRAFT-1619): added software-properties-common install, fixed core22 shell script issues in the v2/craft-parts kernel plugins, and added manual spread tests. | |
| #1115 kernel plugin: fix kernel snap layout | snapcraft | merged | Merged via commit 86017cdef: kernel plugin now places modules/ and firmware/ at the top level of prime/ for kernel snaps, plus corrected required build packages; unit and manual tests updated per review. |