mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Fixing wrolpi-portable login + branding.
- desktop.list.chroot: add user-setup (was implicitly provided by the installer ISO's --debian-installer dep tree; the live-only build lost it and live-config's user-creation step silently exits without it, leaving the squashfs with no login-capable account). - desktop.list.chroot: add plymouth-themes for non-Debian boot splash. - 9999-wrolpi.hook.chroot: pre-create the wrolpi user (UID 1000) with password 'wrolpi' and desktop groups; live-config sees the existing user and skips its own user creation, preserving our chosen password. - 9999-wrolpi.hook.chroot: set hostname to 'wrolpi', /etc/issue banner, Plymouth theme to 'text' (no Debian logo), and a LightDM greeter banner saying 'WROLPi Portable'. - build.sh: add live-config.username=wrolpi, live-config.hostname=wrolpi, live-config.user-fullname=WROLPi to bootappend-live so live-config's other scripts (sudo, lightdm autologin) target the wrolpi user. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
328393707b
commit
30bc1f37da
3 changed files with 39 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ lb config \
|
|||
--clean \
|
||||
--color \
|
||||
--linux-packages "linux-image linux-headers" \
|
||||
--bootappend-live "boot=live components quiet splash noswap" \
|
||||
--bootappend-live "boot=live components quiet splash noswap live-config.username=wrolpi live-config.user-fullname=WROLPi live-config.hostname=wrolpi" \
|
||||
--iso-volume "WROLPi Portable v${VERSION}" \
|
||||
--iso-application "WROLPi Portable v${VERSION}" \
|
||||
--iso-preparer WROLPi \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,28 @@ alias ll='ls -lh'
|
|||
alias la='ll -a'
|
||||
EOF
|
||||
|
||||
# Pre-create the wrolpi user. Same account is used for interactive desktop
|
||||
# login (password 'wrolpi') AND as the User= for the wrolpi-* systemd
|
||||
# services. live-config sees this existing user at boot and skips its own
|
||||
# user creation (preserving our chosen password); the boot params set
|
||||
# live-config.username=wrolpi so live-config's other scripts (sudo,
|
||||
# lightdm autologin) target this account.
|
||||
useradd -m -s /bin/bash -U -G sudo,audio,video,cdrom,plugdev,netdev wrolpi
|
||||
echo "wrolpi:wrolpi" | chpasswd
|
||||
|
||||
# Rebrand from generic Debian so users don't think they have the wrong USB.
|
||||
echo "wrolpi" > /etc/hostname
|
||||
sed -i 's/127\.0\.1\.1.*/127.0.1.1\twrolpi/' /etc/hosts 2>/dev/null || \
|
||||
echo "127.0.1.1 wrolpi" >> /etc/hosts
|
||||
cat > /etc/issue <<'EOF'
|
||||
WROLPi Portable \n (\l)
|
||||
|
||||
EOF
|
||||
cat > /etc/issue.net <<'EOF'
|
||||
WROLPi Portable %h
|
||||
|
||||
EOF
|
||||
|
||||
git --version
|
||||
|
||||
WROLPI_BRANCH="release"
|
||||
|
|
@ -136,6 +158,20 @@ systemctl enable wrolpi-controller.service
|
|||
# Enable weekly certificate renewal check.
|
||||
systemctl enable wrolpi-cert-renew.timer
|
||||
|
||||
# Plymouth — replace Debian-branded splash with a minimal theme. live-build's
|
||||
# initramfs regeneration at the end of the chroot phase will pick up this
|
||||
# change so the new theme is used at boot.
|
||||
plymouth-set-default-theme text || true
|
||||
|
||||
# LightDM greeter — add a WROLPi banner so the login screen identifies the
|
||||
# system instead of looking like a stock Debian.
|
||||
mkdir -p /etc/lightdm/lightdm-gtk-greeter.conf.d
|
||||
cat > /etc/lightdm/lightdm-gtk-greeter.conf.d/50-wrolpi.conf <<'EOF'
|
||||
[greeter]
|
||||
banner-message-enable=true
|
||||
banner-message-text=WROLPi Portable
|
||||
EOF
|
||||
|
||||
# Drop the default Postgres cluster created by the postgresql-* package.
|
||||
# On first boot, the persistence partition will be bind-mounted over
|
||||
# /var/lib/postgresql; with the default cluster baked into the squashfs, the
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
task-xfce-desktop
|
||||
task-ssh-server
|
||||
user-setup
|
||||
plymouth-themes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue