fix(gui): enable graphical.target and sddm display-manager for direct desktop boot and brand bootloader entries
This commit is contained in:
1 parent
bf41a69626
commit
a1758113a7
4 files changed
+55
-16
No files matched your search
@@ -46,10 +46,23 @@ jobs:
|
||||
# 3. Append KDE Plasma 6 desktop & AMD hardware packages
|
||||
cat profile/packages.x86_64 >> build_profile/packages.x86_64
|
||||
|
||||
# 4. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
||||
# 4. Brand bootloader menus with Airlys OS S1 (remove all third party names)
|
||||
find build_profile/efiboot build_profile/syslinux -type f -exec sed -i \
|
||||
-e 's/Arch Linux install medium/Airlys OS S1 Live \& Installer/g' \
|
||||
-e 's/Arch Linux/Airlys OS S1/g' \
|
||||
-e 's/archlinux/airlys/g' \
|
||||
-e 's/Archiso/Airlys OS/g' {} +
|
||||
|
||||
# 5. Enable Graphical Desktop Target & SDDM Display Manager (ensures direct boot to KDE GUI!)
|
||||
mkdir -p build_profile/airootfs/etc/systemd/system/graphical.target.wants/
|
||||
ln -sf /usr/lib/systemd/system/graphical.target build_profile/airootfs/etc/systemd/system/default.target
|
||||
ln -sf /usr/lib/systemd/system/sddm.service build_profile/airootfs/etc/systemd/system/display-manager.service
|
||||
ln -sf /usr/lib/systemd/system/sddm.service build_profile/airootfs/etc/systemd/system/graphical.target.wants/sddm.service
|
||||
|
||||
# 6. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
||||
cp -r profile/airootfs/* build_profile/airootfs/
|
||||
|
||||
# 5. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
|
||||
# 7. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
|
||||
cp -f profile/profiledef.sh build_profile/profiledef.sh
|
||||
|
||||
# 6. Build full production live bootable ISO
|
||||
|
||||
@@ -2,6 +2,9 @@ name: Capture Airlys OS S1 Live Boot Screenshot
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows: ["Build Airlys OS S1 Production ISO"]
|
||||
types: [completed]
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/screenshot.yml'
|
||||
@@ -43,13 +46,13 @@ jobs:
|
||||
KVM_OPTS="-enable-kvm -cpu host"
|
||||
fi
|
||||
|
||||
echo "Launching QEMU with Airlys OS S1 Live ISO..."
|
||||
echo "Launching QEMU with Airlys OS S1 Live ISO and VirtIO VGA..."
|
||||
qemu-system-x86_64 $KVM_OPTS \
|
||||
-m 4096 \
|
||||
-smp 2 \
|
||||
-cdrom bin/airlys.iso \
|
||||
-boot d \
|
||||
-vga std \
|
||||
-vga virtio \
|
||||
-display none \
|
||||
-qmp unix:/tmp/qemu/qmp.sock,server,nowait &
|
||||
QEMU_PID=$!
|
||||
@@ -57,20 +60,23 @@ jobs:
|
||||
|
||||
sleep 2
|
||||
|
||||
# Capture 1: Bootloader screen (at 8s)
|
||||
sleep 8
|
||||
# Capture 1: Bootloader menu screen (at 6s)
|
||||
sleep 6
|
||||
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/01_bootloader.ppm
|
||||
|
||||
# Send Enter key to immediately launch Airlys OS S1
|
||||
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock enter
|
||||
|
||||
# Capture 2: Systemd Kernel Boot (at 35s)
|
||||
sleep 25
|
||||
sleep 30
|
||||
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/02_kernel_boot.ppm
|
||||
|
||||
# Capture 3: Desktop Environment Session (at 80s)
|
||||
sleep 45
|
||||
# Capture 3: Desktop Environment Loading (at 85s)
|
||||
sleep 50
|
||||
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/03_airlys_desktop.ppm
|
||||
|
||||
# Capture 4: Fully Settled Desktop (at 110s)
|
||||
sleep 30
|
||||
# Capture 4: Fully Settled Desktop with Wallpaper & Dock (at 145s)
|
||||
sleep 60
|
||||
python3 scripts/capture_qemu.py /tmp/qemu/qmp.sock /tmp/captures/04_airlys_desktop_settled.ppm
|
||||
|
||||
kill -9 $QEMU_PID || true
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[Unit]
|
||||
Description=Airlys OS S1 First Boot Initialization
|
||||
Before=sddm.service
|
||||
Before=sddm.service display-manager.service
|
||||
RequiredBy=sddm.service display-manager.service
|
||||
ConditionFirstBoot=no
|
||||
|
||||
[Service]
|
||||
@@ -9,4 +10,4 @@ ExecStart=/usr/local/bin/airlys-firstrun.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=graphical.target multi-user.target
|
||||
+22
-3
@@ -4,6 +4,22 @@ import time
|
||||
import socket
|
||||
import json
|
||||
|
||||
def qmp_send_enter(sock_path):
|
||||
try:
|
||||
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||
s.settimeout(10)
|
||||
s.connect(sock_path)
|
||||
s.recv(4096)
|
||||
s.sendall(json.dumps({"execute": "qmp_capabilities"}).encode() + b"\n")
|
||||
s.recv(4096)
|
||||
cmd = json.dumps({"execute": "send-key", "arguments": {"keys": [{"type": "qcode", "data": "ret"}]}})
|
||||
s.sendall(cmd.encode() + b"\n")
|
||||
s.recv(4096)
|
||||
s.close()
|
||||
print("Sent Enter key to boot menu successfully.")
|
||||
except Exception as e:
|
||||
print(f"Failed to send Enter key: {e}")
|
||||
|
||||
def qmp_screendump(sock_path, out_file):
|
||||
try:
|
||||
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||
@@ -22,8 +38,11 @@ def qmp_screendump(sock_path, out_file):
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) < 3:
|
||||
print("Usage: capture_qemu.py <qmp_socket_path> <output_ppm_path>")
|
||||
print("Usage: capture_qemu.py <qmp_socket_path> <action_or_output>")
|
||||
sys.exit(1)
|
||||
sock = sys.argv[1]
|
||||
out = sys.argv[2]
|
||||
qmp_screendump(sock, out)
|
||||
arg = sys.argv[2]
|
||||
if arg == "enter":
|
||||
qmp_send_enter(sock)
|
||||
else:
|
||||
qmp_screendump(sock, arg)
|
||||
Reference in new issue
Block a user