- post-install: ensure the `microcode` initramfs hook (after autodetect) so installed systems carry CPU ucode — the live ISO embeds it, so nothing is staged onto the target otherwise. Rebuild all presets with `mkinitcpio -P`. - post-install: drop the nonexistent `sd-plymouth` hook branch; only the udev `plymouth` hook exists. Set the theme then rebuild once. - packages: add zathura + zathura-pdf-mupdf (BOS had no PDF viewer) and libva-utils (`vainfo`); the Mesa VA-API backend now ships in `mesa` itself. - bos-welcome: on first run, if NetworkManager isn't fully online, open nmtui so the user connects before the first bos-update/pacman (avoids confusing DNS errors on a fresh install). Float the bos-netsetup window like bos-welcome.
34 lines
1.6 KiB
Bash
34 lines
1.6 KiB
Bash
#!/bin/bash
|
|
# First-run welcome. Shows a short getting-started message once, then drops a
|
|
# marker so it never shows again. Launched from the Hyprland autostart; the
|
|
# bos-welcome window class is floated/centred by a Hyprland window rule.
|
|
set -u
|
|
|
|
# Never run in the live/installer session — only on an installed system.
|
|
[[ "$(id -un)" == "liveuser" ]] && exit 0
|
|
|
|
marker="${XDG_CONFIG_HOME:-$HOME/.config}/bos/.welcomed"
|
|
[[ -f "$marker" ]] && exit 0
|
|
mkdir -p "$(dirname "$marker")"
|
|
|
|
# First-run network check. A fresh install usually boots with no connection
|
|
# (Wi-Fi isn't configured during install), and the first `bos-update`/pacman run
|
|
# then fails with confusing DNS/"could not resolve host" errors. If
|
|
# NetworkManager reports we're not fully online, open nmtui so the user can join
|
|
# a network before anything else. Best-effort: missing nmcli/nmtui/kitty, or the
|
|
# user quitting nmtui, must never block the welcome below.
|
|
if command -v nmcli &>/dev/null; then
|
|
conn="$(nmcli networking connectivity check 2>/dev/null)"
|
|
if [[ "$conn" != "full" ]]; then
|
|
notify-send -u normal "BOS" "No internet yet — opening network setup so updates work." 2>/dev/null || true
|
|
if command -v nmtui &>/dev/null; then
|
|
kitty --class bos-netsetup --title "Connect to a network" -- nmtui connect 2>/dev/null || true
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# Mark welcomed only now, so an interrupted/aborted network step still re-prompts
|
|
# next login rather than being suppressed forever.
|
|
touch "$marker"
|
|
|
|
exec kitty --class bos-welcome --title "Welcome to BOS" -- less -R /usr/share/bos/welcome.txt
|