Snap-packed Chisel cannot cut without explicit `--release` on Ubuntu 26.10
まだ誰も着手していません。
評価
調査の方向性
Start by tracing the release inference used by chisel cut and compare how /etc/lsb-release and /etc/os-release resolve inside the Snap mount namespace. The linked Snap smoke test for #343 demonstrates the ubuntu-core-22 failure; use the Ubuntu 26.10 repro to verify that cut without --release detects the host release, while preserving the existing behavior described in the issue.
索引モデルが issue の本文から書いたものです。
説明
context
Chisel infers the release from /etc/lsb-release when --release is not passed from the command line.
Ubuntu 26.10's base-files 14.2ubuntu1 removed this file. This breaks automatic release detection on hosts where the file is no longer available.
repro
Observed with the Chisel snap in an LXD VM, which either of the channels:
lxc launch ubuntu:26.10 test-chisel-snap --vm
lxc exec test-chisel-snap -- cat /etc/os-release
lxc exec test-chisel-snap -- dpkg-query -W base-files
lxc exec test-chisel-snap -- test ! -e /etc/lsb-release
lxc exec test-chisel-snap -- snap install chisel
lxc exec test-chisel-snap -- mkdir -p /root/test-root
lxc exec test-chisel-snap -- /snap/bin/chisel cut \
--root /root/test-root/ bash_bins
expected
Without --release, Chisel should infer the actual host's Ubuntu release, as documented in the command help, without depending on /etc/lsb-release.
Passing an explicit --release bypasses the affected detection code. but breaks the existing UX and may cause regressions (e.g., how rockcraft currently handles the slices in stage-packages).
additional context
Migrating to /etc/os-release needs to account for the Snap's mount namespace.
On Ubuntu, snapd exposes the host's /etc, so /etc/lsb-release previously provided the host's release information. However, /etc/os-release is normally a symlink to ../usr/lib/os-release. Inside the Snap, that target resolves to the base snap's file, which identifies Ubuntu Core rather than the host.
Consequently, reading ID and VERSION_ID from /etc/os-release in the current core22-based snap produces ubuntu-core and 22. The Snap smoke test for #343 demonstrates the resulting failure:
Consulting release repository...
error: no information for ubuntu-core-22 release
A similar situation was discussed in Host's lsb-release but core os-release prior to this regression.
On the other hand, the system-observe interface wouldn't be a good candidate to fix this issue either. The permissions it grants ("... giving privileged read access to all processes on the system") is overly broad.
- 主要言語
- Go
- スター
- 434
- フォーク
- 74
- 平均マージ
- 1日 30分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
canonical/chisel のほかの issue
-
`mode` of a generated directory is random when it has a generated child対応中かも @Amadeus-22 が 24 日前に担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
cut fails on uncompressed deb対応中かも @yuminn-k が 29 日前に担当しました。 オープンBug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
-
`prefer` drops a path when the preferred package lists it `until: mutate`対応中かも @18Abhinav07 が 8 日前に担当しました。 オープンBug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
canonical/chisel の issue をすべて見る
似ている issue
-
mcpx scan: flag unsafe tool names対応中かも @zeyadbadawyy が今日担当しました。 オープンarea/scan enhancement good first issue priority/medium size/small
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rohitgollarahalli/mcpx#45 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
Windows 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Lee-xeo/Claude-Cage#1550 ·
メンテナーはふだん 1 日以内に返信
-
(bug) ui: spanPaint can index spans past their end (panic: index out of range)対応中かも @MaxMiksa が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信