builds of "type: kernel" add obsolete options to snap.yaml
Metadata
Current evaluation
Fixed upstream by merged PR snapcore/snapcraft#768 (commit 71b81ad44), which dropped the obsolete top-level kernel snap.yaml entries (dtbs, firmware, initrd, kernel, modules), so Launchpad kernel snap builds no longer fail store auto-upload.
Resolution: closed resolved
Reason: Maintainer sergiusens posted snapcore/snapcraft#768 in the issue, which was merged as commit 71b81ad44 ("Update kernel meta to the latest spec.") removing 18 obsolete snap.yaml fields, matching the patch proposed in the report.
Evaluated by: mr-cal-bot
No scores available.
Issue body
recently the entries dtbs, firmware, initrd, kernel and modules became obsolete in snap.yaml.
when doing launchpad builds snapcraft adds these lines regardless, so that auto-uploads fail the publishing step with a warning in the store:
unknown entries in snap.yaml: 'dtbs,firmware,initrd,kernel,modules' lint-snap-v2_unknown_field
to make the current automatic kernel-snap builds work the following patch had to be added to snapcraft:
diff --git a/snapcraft/internal/meta.py b/snapcraft/internal/meta.py
index 28baa26..2afd103 100644
--- a/snapcraft/internal/meta.py
+++ b/snapcraft/internal/meta.py
@@ -163,8 +163,8 @@ class _SnapPackaging:
if 'apps' in self._config_data:
snap_yaml['apps'] = self._wrap_apps(self._config_data['apps'])
- if self._config_data.get('type', '') == 'kernel':
- snap_yaml.update(self._get_kernel_keys())
+ #if self._config_data.get('type', '') == 'kernel':
+ # snap_yaml.update(self._get_kernel_keys())
return snap_yaml
please make sure these options get dropped from snapcraft soon so we do not need to use a patched sanpcraft version for official snap builds.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed upstream by merged PR snapcore/snapcraft#768 (commit 71b81ad44), which dropped the obsolete top-level kernel snap.yaml entries (dtbs, firmware, initrd, kernel, modules), so Launchpad kernel snap builds no longer fail store auto-upload. | |
| stealth/space-bunny-alpha | — | closed resolved | Obsolete top-level kernel snap.yaml fields were removed by merged PR #768 (commit 71b81ad44), fixing Launchpad kernel builds without a patched Snapcraft. | |
| stealth/space-bunny-alpha | — | closed resolved | Obsolete kernel metadata was removed from generated snap.yaml files, preventing Store lint warnings and failures when automatically publishing kernel snaps. | |
| stealth/space-bunny-alpha | — | closed resolved | Obsolete kernel fields were removed from generated snap.yaml by #768 (71b81ad44), updating kernel metadata to the latest snap specification and allowing Store auto-uploads to pass. | |
| qwen/qwen3.6-35b-a3b | — | — | Resolved by removing obsolete kernel field generation from snap.yaml creation, preventing store upload warnings. The fix drops dtbs, firmware, initrd, kernel, and modules keys for kernel type snaps. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after fixing snapcraft to stop adding obsolete kernel options to snap.yaml. The resolution removes deprecated dtbs, firmware, initrd, kernel, and modules fields, preventing store upload warnings and eliminating the need for local patches. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#768
(confidence 96%)
Merged PR referenced by the closing maintainer comment; commit 71b81ad44 updates kernel meta to the latest spec.
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. | |
| #6237 refactor: migrate kernel_build | snapcraft | merged | Merged #6237 in commit 0f576502e, migrating kernel_build from snapcraft_legacy to modern linting and type-checking standards. |