From c62e949a62f2cb984cc265c2d0b68c5523f6e46b Mon Sep 17 00:00:00 2001 From: ruscher Date: Thu, 26 Nov 2026 07:09:43 -0300 Subject: [PATCH] =?UTF-8?q?calamares=20(bigwindowmaker):=20popula=20a=20ch?= =?UTF-8?q?ave=20do=20reposit=C3=B3rio=20[big-wm]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O pacman.conf da edição Big WindowMaker passa a ter o repositório assinado [big-wm] (big-windowmaker/repo) com SigLevel = Required. Sem a chave do big-wm-keyring no chaveiro, o sistema instalado não consegue atualizar. Só o perfil bigwindowmaker: os outros não têm o big-wm-keyring e o --populate falharia. Co-Authored-By: Claude Opus 5.5 --- .../shellprocess_initialize_pacman.conf | 4 +++- tests/test_calamares_configuration.py | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/biglinux-livecd/usr/share/biglinux/calamares-profiles/bigwindowmaker/modules/shellprocess_initialize_pacman.conf b/biglinux-livecd/usr/share/biglinux/calamares-profiles/bigwindowmaker/modules/shellprocess_initialize_pacman.conf index 6ef506a..22af25d 100644 --- a/biglinux-livecd/usr/share/biglinux/calamares-profiles/bigwindowmaker/modules/shellprocess_initialize_pacman.conf +++ b/biglinux-livecd/usr/share/biglinux/calamares-profiles/bigwindowmaker/modules/shellprocess_initialize_pacman.conf @@ -4,7 +4,9 @@ dontChroot: false script: - "pacman-key --init" - - command: "pacman-key --populate archlinux manjaro biglinux" + # big-wm: a chave do repositório [big-wm] (big-wm-keyring, sempre na ISO + # do Big WindowMaker; o pacman.conf da edição exige a assinatura). + - command: "pacman-key --populate archlinux manjaro biglinux big-wm" timeout: 1200 i18n: diff --git a/tests/test_calamares_configuration.py b/tests/test_calamares_configuration.py index 1389fa4..b49d5d2 100644 --- a/tests/test_calamares_configuration.py +++ b/tests/test_calamares_configuration.py @@ -908,3 +908,26 @@ def test_installation_log_is_kept_on_the_installed_system() -> None: assert "/var/log/installation.log" in ( BIGWM_PROFILE / "branding/bigwindowmaker/finishedq.qml" ).read_text(encoding="utf-8") + + +def test_bigwindowmaker_populates_the_big_wm_key(): + # The edition's pacman.conf requires signatures from [big-wm] + # (big-windowmaker/repo): without its key the installed system cannot + # update. The other profiles have no big-wm-keyring and must not ask + # for it (pacman-key --populate fails on a missing keyring). + def populate(profile): + config = yaml.safe_load( + (profile / "modules/shellprocess_initialize_pacman.conf").read_text(encoding="utf-8") + ) + return [ + item["command"].split() + for item in config["script"] + if isinstance(item, dict) and "--populate" in item["command"] + ] + + assert populate(BIGWM_PROFILE) == [ + ["pacman-key", "--populate", "archlinux", "manjaro", "biglinux", "big-wm"] + ] + for other in BIGWM_PROFILE.parent.iterdir(): + if other != BIGWM_PROFILE and (other / "modules/shellprocess_initialize_pacman.conf").exists(): + assert all("big-wm" not in command for command in populate(other)), other.name