ソースを参照

【修复】重构 PageOS 镜像构建流程

- 添加 pageos-exec 脚本,用于执行特定命令
- 修改 pageos-session 脚本,使用 pageos-exec 执行命令
- 更新 greetd 配置,简化默认会话命令
- 调整打包工作流,增加 ISO 文件压缩级别
- 更新软件包列表,启用 vmware 视频驱动
PJ568 1 年間 前
親
コミット
568b8ac506

+ 1 - 0
.github/workflows/build_iso.yaml

@@ -62,4 +62,5 @@ jobs:
         with:
           name: pageos-iso
           path: target/*.iso
+          compression-level: 9 # maximum compression
           retention-days: 5

+ 1 - 1
airootfs/etc/greetd/config.toml

@@ -5,7 +5,7 @@ vt = 1
 
 # The default session, also known as the greeter.
 [default_session]
-command = "/usr/local/bin/pageos-session pageos-ui"
+command = "pageos-session pageos-ui"
 
 # The user to run the command as. The privileges this user must have depends
 # on the greeter. A graphical greeter may for example require the user to be

+ 3 - 0
airootfs/usr/local/bin/pageos-exec

@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+pageos-core --command="cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12800/exec.html?id=$1"

+ 4 - 4
airootfs/usr/local/bin/pageos-session

@@ -1,7 +1,7 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 mkdir -p /tmp/pageos-greet
-export HOME=/tmp/pageos-greet
+HOME=/tmp/pageos-greet
 pageos-greet \
-  --launch-command "cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12801" \
-  --session-command "pageos-core --command \"cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12800/exec.html?id=$1\""
+  --launch-command="cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12801" \
+  --session-command="pageos-exec $1"

+ 1 - 1
packages.x86_64

@@ -142,7 +142,7 @@ wget
 mesa
 xf86-video-fbdev
 xf86-video-vesa
-#xf86-video-vmware(worked, disable for test)
+xf86-video-vmware
 
 xf86-video-intel
 vulkan-intel

+ 1 - 0
profiledef.sh

@@ -25,6 +25,7 @@ file_permissions=(
   ["/etc/sudoers.d"]="0:0:750"
   ["/usr/local/bin/choose-mirror"]="0:0:755"
   ["/usr/local/bin/pageos-core"]="0:0:755"
+  ["/usr/local/bin/pageos-exec"]="0:0:755"
   ["/usr/local/bin/pageos-greet"]="0:0:755"
   ["/usr/local/bin/pageos-session"]="0:0:755"
   ["/usr/local/bin/pageos-pkgr"]="0:0:755"