pacman keeps one mirror list for the mesh, ranked in the write that opens each round and written by every node (ADR 0585, issue 1876)
Each node's reflector ranked its own list on its own timer, and on 2026-10-31 one node's lagging first mirror left it a Node.js version behind the rest. The list is now the module's state mirrors, key list: the node that opens a week's round ranks it with the module's reflector options, keeps only mirrors whose last sync is no older than the newest found, and the round's key names the list's revision. Every keeper writes /etc/pacman.d/mirrorlist whole from the key through the root helper's new verb mirrorlist, when the key changes and when the file differs, and never writes an empty or unreadable list. reflector.timer is declared stopped and disabled, and reflector.conf saves nothing. pacman_mirrors answers the shared list, its ranker and age and whether this node's file matches; with refresh it asks this node's keeper to rank again, refused while a round runs, naming it. The round's integration test proves the opening write and both nodes' files. Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -433,15 +433,18 @@ func tools(m *Machine) []stdio.Tool {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "pacman_mirrors",
|
||||
Description: "The mirror list in force (servers, commented ones, who generated it and when), reflector's options, its timer and its last run. With refresh: true, start reflector now (sudo -n), without waiting.",
|
||||
Input: schema(map[string]any{"refresh": map[string]any{"type": "boolean", "description": "rank and rewrite the list now"}}),
|
||||
Name: "pacman_mirrors",
|
||||
Description: "The mesh's one mirror list from the bus (ADR 0585): its servers, when and by which node it was ranked, its " +
|
||||
"age and reflector's options, and whether this node's /etc/pacman.d/mirrorlist matches it (the file as found when " +
|
||||
"not), with reflector's timer, which stays disabled. With refresh: true, this node's keeper ranks the list again " +
|
||||
"for the whole mesh and every node writes it; refused while an upgrade round runs, naming the round.",
|
||||
Input: schema(map[string]any{"refresh": map[string]any{"type": "boolean", "description": "rank the mesh's list again now"}}),
|
||||
Run: func(args map[string]any) (any, error) {
|
||||
refresh, err := flag(args, "refresh")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m.MirrorList(refresh)
|
||||
return m.MirrorsView(refresh)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user