feat: implement native Alpine Linux system overlay, Windows-like OOBE Setup Wizard, and automated rootfs deployment scripts
Cette révision appartient à :
1 Parent
220105fe67
révision
8a19009c4e
14 fichiers modifiés
+1248
-91
Aucun fichier ne correspond à votre recherche
@@ -0,0 +1,2 @@
|
||||
https://dl-cdn.alpinelinux.org/alpine/v3.21/main
|
||||
https://dl-cdn.alpinelinux.org/alpine/v3.21/community
|
||||
@@ -0,0 +1,2 @@
|
||||
# Options for seatd OpenRC service
|
||||
SEATD_OPTS="-g seat"
|
||||
@@ -0,0 +1,5 @@
|
||||
# doas configuration for Gastinel Alpine (ultra-lightweight sudo replacement)
|
||||
# Members of the wheel group can run commands as root, password cached
|
||||
permit persist :wheel
|
||||
permit nopass :wheel cmd reboot
|
||||
permit nopass :wheel cmd poweroff
|
||||
@@ -0,0 +1,21 @@
|
||||
#!/sbin/openrc-run
|
||||
# OpenRC service script for Gastinel Desktop
|
||||
|
||||
description="Gastinel Wayland Desktop Environment"
|
||||
supervisor="supervise-daemon"
|
||||
command="/usr/bin/gastinel-desktop"
|
||||
command_user="theog:seat"
|
||||
|
||||
depend() {
|
||||
need udev seatd localmount
|
||||
after networking
|
||||
provide display-manager
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
# Ensure seatd socket is accessible
|
||||
if [ ! -S /run/seatd.sock ]; then
|
||||
eerror "seatd is not running! Starting seatd..."
|
||||
rc-service seatd start
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/sbin/openrc-run
|
||||
# OpenRC first-boot Setup Wizard (OOBE) for Gastinel Alpine
|
||||
|
||||
description="Gastinel First-Boot Setup Wizard"
|
||||
command="/usr/bin/gastinel-desktop"
|
||||
command_args="--setup-wizard"
|
||||
|
||||
depend() {
|
||||
need udev seatd localmount
|
||||
after networking
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Gastinel Graphical Setup Wizard"
|
||||
|
||||
# Launch setup wizard directly on frame buffer / DRM
|
||||
/usr/bin/gastinel-desktop --setup-wizard
|
||||
|
||||
local status=$?
|
||||
if [ $status -eq 0 ]; then
|
||||
# Setup completed successfully: switch to regular desktop
|
||||
rc-update del gastinel-oobe default
|
||||
rc-update add gastinel default
|
||||
einfo "Gastinel Setup finished! Launching desktop session..."
|
||||
rc-service gastinel start
|
||||
else
|
||||
eerror "Setup wizard exited with code $status"
|
||||
fi
|
||||
|
||||
eend $status
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# /etc/inittab for Gastinel Alpine Linux
|
||||
# Direct graphical launch without tty text login prompt
|
||||
|
||||
::sysinit:/sbin/openrc sysinit
|
||||
::wait:/sbin/openrc boot
|
||||
::wait:/sbin/openrc default
|
||||
|
||||
# tty1 launches Gastinel GUI directly
|
||||
tty1::respawn:/usr/bin/gastinel-session
|
||||
|
||||
# Fallback debug ttys on Alt+F2 / Alt+F3
|
||||
tty2::respawn:/sbin/getty 38400 tty2
|
||||
tty3::respawn:/sbin/getty 38400 tty3
|
||||
|
||||
::ctrlaltdel:/sbin/reboot
|
||||
::shutdown:/sbin/openrc shutdown
|
||||
@@ -0,0 +1,12 @@
|
||||
# Gastinel Memory & Performance tuning for 8GB RAM Alpine Linux
|
||||
# Preserves RAM for user applications, prevents aggressive swap stalls
|
||||
|
||||
# Reduce swappiness (default 60 is too aggressive on laptops)
|
||||
vm.swappiness = 10
|
||||
|
||||
# Keep filesystem metadata caches in memory for instant responsiveness
|
||||
vm.vfs_cache_pressure = 50
|
||||
|
||||
# Smooth out background writebacks to SSD/NVMe
|
||||
vm.dirty_background_ratio = 5
|
||||
vm.dirty_ratio = 15
|
||||
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# /usr/bin/gastinel-session
|
||||
# Session bootstrap script for Gastinel Desktop
|
||||
|
||||
# 1. Setup XDG runtime directory if missing
|
||||
if [ -z "$XDG_RUNTIME_DIR" ]; then
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||
if [ ! -d "$XDG_RUNTIME_DIR" ]; then
|
||||
mkdir -p "$XDG_RUNTIME_DIR"
|
||||
chmod 0700 "$XDG_RUNTIME_DIR"
|
||||
fi
|
||||
fi
|
||||
|
||||
# 2. Check if first boot setup wizard is required
|
||||
if [ ! -f /etc/gastinel/installed.lock ]; then
|
||||
echo "[GASTINEL] First boot detected -> Launching Setup Wizard..."
|
||||
exec /usr/bin/gastinel-desktop --setup-wizard
|
||||
fi
|
||||
|
||||
# 3. Launch regular desktop session
|
||||
echo "[GASTINEL] Launching Desktop..."
|
||||
exec /usr/bin/gastinel-desktop
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur