← Back to issue list

core: setup core to support classic confinement.

View original Github issue

Metadata

Project
snapcraft
Number
#1112
Type
pull request
State
merged
Author
sergiusens
Labels
Created
Updated
Closed

Current evaluation

Merged after CI fixes and reviewer approval. Introduces SNAPCRAFT_SETUP_CORE environment variable support to manually unpack the core snap, enabling classic confinement on systems lacking /snap/core/current.

Suggested action:

No scores available.

Issue body

When doing ci, most systems won't have /snap/core/current as they are not snappy capable. The work here allows for one to export SNAPCRAFT_SETUP_CORE to get the core snap and unsquash it onto the expected locations. LP: #1662351 Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged after CI fixes and reviewer approval. Introduces SNAPCRAFT_SETUP_CORE environment variable support to manually unpack the core snap, enabling classic confinement on systems lacking /snap/core/current.
qwen3.6-35b-a3b-mtp-q6 Merged after review and test fixes. Adds SNAPCRAFT_SETUP_CORE env var support to manually extract the core snap, enabling classic confinement setup for CI environments lacking /snap/core/current.
qwen3.6-35b-a3b-mtp-q6 Merged to enable classic confinement support by unpacking the core snap to expected locations via an environment variable. Resolves CI compatibility for non-snappy systems after addressing review feedback and fixing test failures.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1576 docker: add the environment variable to setup core snapcraft merged Merged a one-line Dockerfile update adding the SNAPCRAFT_SETUP_CORE environment variable to enable straightforward snapcraft builds with classic confinement. The change was approved, passed CI checks, and successfully integrated.
83%
#1801 lifecycle: detect docker to auto setup core snapcraft merged Merged after passing CI and reviewer approval. Adds Docker container detection to automatically set up the core snap in classic confinement, modifying two files with minimal changes.
74%
#3087 meta: remove snapd workaround for classic for core20 onwards snapcraft merged Removed snapd classic confinement workaround for core20 and newer bases. Retained command-chain workaround for core, core16, core18, and no base. Merged after single reviewer approval and passing CI checks.
73%
#2520 snap: set core as a base snapcraft merged Merged after reviewer approval and passing CI checks. Configures core as the snap base to enable snapcraft 3.x build functionality. The change modifies 2 files with 17 additions and 10 deletions.
72%
#1662351 Support ci builds when classic confinement is set snapcraft (launchpad) closed Closed without implementation or discussion. The requirement to provision /snap/core/current for classic confinement in CI builds was abandoned.
70%