Per-school LINBO hardware groups: school-qualified group ids in import-devices
まだ誰も着手していません。
評価
調査の方向性
Start in src/linuxmuster_base7/cli/import_devices.py, reading doGrubCfg(), doLinboStartconf(), buildDhcpHostDeclaration(), and doPxeGroupsBySchool(), then inspect linuxmuster_base7.functions for the requested helper pair. Choose one separately scoped task, preserve default-school output byte-for-byte, and verify the qualified names, links, or migration behavior described in the issue without overwriting existing qualified files.
索引モデルが issue の本文から書いたものです。
説明
This is the linuxmuster-base7 part of linuxmuster/linuxmuster-linbo7#178 (per-school hardware groups on multi-school servers). The design and cross-repo overview stay in linbo7#178. This issue tracks only the base7 work.
Background
On a multi-school server every hardware group is server-wide: two schools with a group raum101 share one start.conf.raum101, and school admins cannot safely be given control over "their" groups. As discussed in linbo7#178, the fix is a school-qualified group id that linuxmuster-import-devices generates. The LINBO client, the GRUB templates and the rsync hooks already pass the group string through unchanged, so they need no changes.
Target behaviour
- For every school other than
default-school, import-devices uses<school>+<group>in place of<group>for every LINBO artefact it derives from the group, e.g.start.conf.abc+raum101andabc+raum101.cfg. default-schoolkeeps the current flat names exactly as they are. Single-school installations see no change.
Separator + (decided in linbo7#178): neither school names nor group names can contain +, so qualified ids cannot collide and can be parsed without the school list. A name without + belongs to default-school; a name with + splits on the first + into school and group.
Affected code (src/linuxmuster_base7/cli/import_devices.py)
buildDhcpHostDeclaration():option extensions-path/option nis-domaindoLinboStartconf():start.conf.<group>, including the unconfigured default copydoGrubCfg():<group>.cfgdoPxeGroupsBySchool(): thestart.conf-<ip>andhostcfg/<host>.cfglinks and the returned group list
The group column in devices.csv stays unqualified. The qualified id is derived, never stored.
Tasks
Each task is meant to be a separate, small PR:
- Group id helper pair in
linuxmuster_base7.functions: one function for school + group → qualified id and one for qualified id → school + group, so the naming rule lives in one place.linbo_mkgrubimg.py(linbo7) and linuxmuster-tools reuse them. Fordefault-schoolthe id is the plain group. Use them at all the call sites above. - Migration of existing installations: for every non-default school, copy each
start.conf.<group>that the school uses tostart.conf.<school>+<group>(a group shared by several schools gets one copy per school), rewrite theGroup =line in each copy to the qualified id (clients use it asHOSTGROUPin offline mode), then re-run the import. It must be idempotent and must never overwrite an existing qualified file. - Changelog / release notes: document the new naming and that formerly shared groups are split per school.
Covered outside base7, see linbo7#178: the linbo_sync fallback for group-keyed Windows boot files (BCD, bsmbr, gptlabel) in existing images, and the linbo_mkgrubimg.py fixes for non-default schools.
Constraints
- Default-school behaviour must stay byte-for-byte identical (DHCP config, file names, links).
Open questions
- Where the migration runs: on package upgrade or as an explicit command. To be discussed here.
Contributing
PRs are welcome. Please keep each PR small and limited to one task above, so it can be reviewed and merged on its own. PRs that reformat existing code without a functional reason will not be accepted.
Related: linuxmuster/linuxmuster-linbo7#178, linuxmuster/linuxmuster-tools#36
- 主要言語
- Python
- スター
- 13
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmuster/linuxmuster-base7 のほかの issue
-
linuxmuster-release-upgrade: fix networkd-wait-online typo, stop masking systemd-resolved wholesaleオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
linuxmuster/linuxmuster-base7#203 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 15/100
linuxmuster/linuxmuster-base7#197 ·
-
Support Ubuntu 26.04オープン7.4
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
linuxmuster/linuxmuster-base7#172 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
linuxmuster/linuxmuster-base7#152 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
linuxmuster/linuxmuster-base7#151 · コメント 2 件 ·
linuxmuster/linuxmuster-base7 の issue をすべて見る
似ている issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedオープンworkflow
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
メンテナーはふだん 1 日以内に返信
-
metadata submission
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
canonical/content-cache-operator#163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[submission]オープンsubmission
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
leanprover/lean-eval-submissions#1852 ·
メンテナーはふだん 1 日以内に返信