Skip to content

Commit 5098f4d

Browse files
Kabuki94claude
andcommitted
fix(sysusers): override upstream cephadm UID + cross-repo hygiene mirror
- etc/sysusers.d/cephadm.conf pins cephadm UID/GID to 1100 so the upstream cephadm RPM's auto-allocated ('-') login user no longer fails postcheck invariant #8 (logind requires UID >= UID_MIN to mint /run/user/<uid>). /etc/sysusers.d/<name> shadows /usr/lib/sysusers.d/<name> per systemd-sysusers.d(5). - automation/99-postcheck.sh: checks #8 and #8b now walk the *effective* sysusers file via a new _sysusers_effective helper, preferring /etc overrides over /usr/lib so the upstream cephadm.conf no longer trips the invariant once shadowed. - .gitignore: whitelist /API.md (was blocked by /*), /.env.mios (mirrored from mios-bootstrap so user-runtime env defaults travel with this repo), and /etc/sysusers.d/** (admin overrides for upstream sysusers entries). - .env.mios: mirrored verbatim from mios-bootstrap for cross-repo parity. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5a37f21 commit 5098f4d

5 files changed

Lines changed: 817 additions & 4 deletions

File tree

.env.mios

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# MiOS user-runtime defaults.
2+
#
3+
# This file is sourced by the installed MiOS environment as a fallback when
4+
# /etc/mios/install.env or ~/.config/mios/env doesn't override a given key.
5+
# It's user-space only -- build-time env lives in MiOS (Justfile / image-versions.yml).
6+
7+
# ============================================================================
8+
# Account convention
9+
# ============================================================================
10+
MIOS_DEFAULT_USER="mios" # @verb:SET_USER
11+
MIOS_DEFAULT_HOST="mios" # @verb:SET_HOST
12+
13+
# ============================================================================
14+
# Inference backend (OpenAI-compatible)
15+
# ============================================================================
16+
MIOS_AI_ENDPOINT="http://localhost:8080/v1" # @verb:GET_ENDPOINT
17+
MIOS_AI_MODEL="default" # @verb:SET_MODEL
18+
19+
# ============================================================================
20+
# Layered Flatpaks
21+
# ============================================================================
22+
MIOS_FLATPAKS="org.gnome.Epiphany,com.github.tchx84.Flatseal,io.github.kolunmi.Bazaar,com.mattjakeman.ExtensionManager" # @verb:INSTALL_FLATPAKS
23+
24+
# ============================================================================
25+
# Image / branch metadata
26+
# ============================================================================
27+
MIOS_REPO_URL="https://github.com/MiOS-DEV/MiOS" # @verb:GET_REPO
28+
MIOS_BOOTSTRAP_REPO_URL="https://github.com/MiOS-DEV/MiOS-bootstrap" # @verb:GET_BOOTSTRAP
29+
MIOS_IMAGE_NAME="ghcr.io/MiOS-DEV/mios" # @verb:GET_IMAGE
30+
MIOS_IMAGE_TAG="latest" # @verb:SET_TAG
31+
MIOS_BRANCH="main" # @verb:SET_BRANCH

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
!/.clinerules
2323
!/.cursorrules
2424
!/.editorconfig
25+
!/.env.mios
2526
!/.github/
2627
!/.github/**
2728
!/AGENTS.md
2829
!/AI.md
30+
!/API.md
2931
!/CLAUDE.md
3032
!/GEMINI.md
3133
!/system-prompt.md
@@ -113,6 +115,11 @@ etc/mios/*
113115
!/etc/mios/system-prompts/
114116
!/etc/mios/system-prompts/**
115117

118+
# /etc/sysusers.d/ — admin overrides for upstream-RPM sysusers entries
119+
# (e.g. cephadm.conf pins UID >= 1000 so the postcheck #8 invariant passes).
120+
!/etc/sysusers.d/
121+
!/etc/sysusers.d/**
122+
116123
# /home/ is BOOTSTRAP territory. Per-user templates and skel live in mios-bootstrap.
117124
# /agents/ is BOOTSTRAP territory (knowledge graphs / RAG manifests).
118125

0 commit comments

Comments
 (0)