Replace SDDM with Plasma Login Manager in the KDE Purpose

The greeter is a Plasma session, so the SDDM theme drop-in and the
CompositorCommand input-method flag are gone. Layouts (ru,us) and the
on-screen keyboard now reach the greeter through system-wide kxkbrc and
plasmakeyboardrc, the preset enables plasmalogin.service, and finalization
checks the package/unit and that SDDM is absent.
This commit is contained in:
Archipelago 2026-11-13 16:53:21 +03:00
parent 6eaab1f163
commit 192c235254
3 changed files with 48 additions and 59 deletions

View file

@ -1,20 +1,22 @@
# Private layered KDE adapter
D-091 (2026-11-07) authorizes KDE publication after user-confirmed hardware
readiness. The follow-up image selects the packaged Plasma SDDM theme `breeze`
through `/usr/lib/sddm/sddm.conf.d/zz-archipelago-theme.conf` in the Purpose
payload. Machine settings in `/etc` retain normal SDDM precedence. Finalization
requires the theme files and checks the merged configuration in the composed tree. This
vendor default updates with `/usr` on existing installations as well as fresh ISOs.
readiness. D-110 (2026-11-13) replaces SDDM with Plasma Login Manager, KDE's
SDDM fork: the greeter is a Plasma session, so there are no SDDM themes or
`CompositorCommand` knobs. Keyboard layouts and the virtual keyboard reach the
greeter through the system-wide `/etc/xdg/kxkbrc` (RU+EN) and
`/etc/xdg/plasmakeyboardrc` files in the Purpose payload; finalization checks the
package, the unit, the absence of SDDM and those two files.
The KDE package selection also includes `sddm-kcm`, explicitly requested by the
user on 2026-11-07, for SDDM configuration in System Settings. Finalization checks
its presence in the composed package database. Package/runtime acceptance belongs
to the next normal pipeline alongside the Breeze precedence correction.
The KDE package selection carries the Plasma Login Manager KCM
(`kcm_plasmalogin`, shipped in `plasma-login-manager`) for login-screen
configuration in System Settings. `sddm-kcm` is no longer installed.
Finalization checks the package and unit presence in the composed tree.
`kinfocenter` is included as well for the About this System page in System
Settings; package presence is checked in finalization and installed-VM acceptance.
Hardware follow-up found a precedence defect in published run `20261107T101235Z`:
Hardware follow-up found a precedence defect in published run `20261107T101235Z`
(historical, SDDM era; superseded by D-110):
`20-archipelago-theme.conf` was loaded before the SDDM package's `default.conf`,
whose `[Theme] Current=` reset the selection. Both files were confirmed in image
`a747ff537a991ce20a1735506576e554e648bed09a2465c50fccc73fbc4eac80`.
@ -44,10 +46,12 @@ not install it; KDE installs it from that same repository. The source archive,
recipe, binary checksum and build package inventory are retained. This private
package path still requires compilation and installed onboarding acceptance.
Native first boot uses upstream Plasma Setup and SDDM. The installed-only drop-in
preserves upstream ordering and conditions. SDDM's greeter uses the packaged KWin
Wayland compositor. A timer observes `/etc/plasma-setup-done` and a local SDDM
primary session (including upstream's temporary new-user autologin), verifies AccountsService identity, home,
Native first boot uses upstream Plasma Setup and Plasma Login Manager. The
installed-only drop-in preserves upstream ordering and conditions. The greeter is
a Plasma session started by `plasmalogin.service`, so it uses the same KWin
Wayland stack as the desktop. A timer observes `/etc/plasma-setup-done` and a local
greeter login (including upstream's temporary new-user autologin), verifies
AccountsService identity, home,
wheel/sudo and subordinate ranges, then records Archipelago provisioning. No
account or completion marker is created by the builder.

View file

@ -1,45 +1,22 @@
# Clean Core + KDE composition; existing-machine rebase is a separate workflow.
systemctl --root=/job/core disable systemd-networkd archipelago-firstboot@tty1 archipelago-firstboot@ttyS0 getty@tty1 serial-getty@ttyS0 kmsconvt@tty1
systemctl --root=/job/core enable NetworkManager ModemManager sddm plasma-setup bluetooth cups.socket power-profiles-daemon \
systemctl --root=/job/core enable NetworkManager ModemManager plasmalogin plasma-setup bluetooth cups.socket power-profiles-daemon \
archipelago-kde-onboarding.timer archipelago-software-refresh.timer
systemctl --root=/job/core set-default graphical.target
test -f /job/core/usr/share/sddm/themes/breeze/Main.qml
test -f /job/core/usr/share/sddm/themes/breeze/metadata.desktop
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Q sddm-kcm
# Plasma Login Manager (fork of SDDM) owns the greeter. Its unit carries the
# display-manager alias, and the greeter is a Plasma session, so there are no
# SDDM themes or CompositorCommand knobs to configure.
test -x /job/core/usr/bin/plasmalogin
test -f /job/core/usr/lib/systemd/system/plasmalogin.service
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Q plasma-login-manager
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Q kinfocenter
grep -qx 'Current=breeze' /job/core/usr/lib/sddm/sddm.conf.d/zz-archipelago-theme.conf
mkdir -p /job/core/etc/sddm.conf.d
cat > /job/core/etc/sddm.conf.d/20-archipelago-wayland.conf <<'SDDM'
[General]
DisplayServer=wayland
[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1 --inputmethod plasma-keyboard
SDDM
# Check the merged configuration, not just the presence of our fragment.
# sddm --example-config resets to compiled defaults and cannot check precedence.
arch-chroot /job/core python - <<'SDDM_CHECK'
from pathlib import Path
values = {}
paths = []
for directory in ('/usr/lib/sddm/sddm.conf.d', '/etc/sddm.conf.d'):
paths.extend(sorted(path for path in Path(directory).iterdir() if path.is_file()))
paths.append(Path('/etc/sddm.conf'))
for path in paths:
if not path.is_file():
continue
section = 'General'
for raw in path.read_text().splitlines():
line = raw.split('#', 1)[0].strip()
if '=' in line:
key, value = line.split('=', 1)
values[section, key.strip()] = value.strip()
elif line.startswith('[') and line.endswith(']'):
section = line[1:-1]
assert values.get(('Theme', 'Current')) == 'breeze', values
assert values.get(('General', 'DisplayServer')) == 'wayland', values
assert '--inputmethod plasma-keyboard' in values.get(('Wayland', 'CompositorCommand'), ''), values
print('SDDM effective configuration: Theme.Current=breeze, DisplayServer=wayland, CompositorCommand=inputmethod plasma-keyboard')
SDDM_CHECK
arch-chroot /job/core pacman --config /dev/null --dbpath /usr/lib/archipelago/package-db -Q sddm >/dev/null 2>&1 && {
echo 'D-110: SDDM must not be installed in the KDE Purpose' >&2; exit 1; }
# Keyboard layouts and the virtual keyboard reach the greeter through the
# system-wide Plasma configuration that both the greeter and user sessions read.
grep -qx 'LayoutList=ru,us' /job/core/etc/xdg/kxkbrc
grep -qx 'enabledLocales=ru_RU,en_US' /job/core/etc/xdg/plasmakeyboardrc
printf 'Plasma Login Manager: greeter is a Plasma session; kxkbrc/plasmakeyboardrc apply system-wide\n'
mkdir -p /job/core/etc/NetworkManager/conf.d /job/core/etc/sudoers.d /job/core/etc/containers /job/core/etc/archipelago
printf '[main]\ndns=systemd-resolved\n' > /job/core/etc/NetworkManager/conf.d/20-archipelago.conf
printf '%%wheel ALL=(ALL:ALL) ALL\n' > /job/core/etc/sudoers.d/10-archipelago-wheel

View file

@ -10,13 +10,21 @@ mkdir -p "$pkg/runtime/usr/lib/systemd/zram-generator.conf.d"
printf '[zram0]\n' > "$pkg/runtime/usr/lib/systemd/zram-generator.conf.d/20-archipelago-desktop.conf"
sed 's/Archipelago Core/Archipelago KDE/g' "$pkg/runtime/usr/lib/archipelago/defaults/os-release" > "$pkg/runtime/usr/lib/archipelago/defaults/os-release-kde"
printf 'purpose/desktop/kde\n' > "$pkg/runtime/usr/lib/archipelago/purpose"
mkdir -p "$pkg/runtime/usr/lib/sddm/sddm.conf.d"
# SDDM reads this directory alphabetically, including the packaged default.conf.
# A numeric prefix sorts BEFORE default.conf, whose empty Current resets the theme.
cat > "$pkg/runtime/usr/lib/sddm/sddm.conf.d/zz-archipelago-theme.conf" <<'SDDM_THEME'
[Theme]
Current=breeze
SDDM_THEME
# Plasma Login Manager owns the greeter and has no SDDM themes. The greeter is a
# Plasma session, so it inherits the system-wide layout and virtual-keyboard
# configuration; this is what makes RU+EN and the on-screen keyboard work there.
mkdir -p "$pkg/runtime/etc/xdg"
cat > "$pkg/runtime/etc/xdg/kxkbrc" <<'KXKBRC'
[Layout]
Use=true
LayoutList=ru,us
Model=pc105
Options=grp:alt_shift_toggle
KXKBRC
cat > "$pkg/runtime/etc/xdg/plasmakeyboardrc" <<'PLASMAKEYBOARD'
[General]
enabledLocales=ru_RU,en_US
PLASMAKEYBOARD
printf 'Plasma Setup is the native first-user provisioner.\n' > "$pkg/runtime/usr/lib/archipelago/kde-firstboot"
desktop="$pkg/runtime/usr/share/archipelago/desktop"
units="$pkg/runtime/usr/lib/systemd/system"
@ -106,7 +114,7 @@ disable systemd-networkd.service
enable NetworkManager.service
enable systemd-resolved.service
enable plasma-setup.service
enable sddm.service
enable plasmalogin.service
enable bluetooth.service
enable cups.socket
enable power-profiles-daemon.service