wallpaper: bundle stock wallpapers and default to geminux-dark.png

This commit is contained in:
Luxferre committed 2026-11-27 18:14:46 +02:00
1 parent 8a7d466655
commit 5472d4273a
9 files changed
+94 -19

No files matched your search

+16 -1
View File
@@ -399,7 +399,11 @@ for req_rel in ("etc/pam.d/autologin", "etc/init.d/geminux-hwinit",
"home/user/.config/xsettingsd/xsettingsd.conf",
"etc/NetworkManager/dispatcher.d/30-geminux-chrony",
"etc/polkit-1/rules.d/10-geminux.rules",
"usr/bin/geminux-apply-wallpaper"):
"usr/bin/geminux-apply-wallpaper",
"usr/share/geminux/wallpapers/geminux-dark.png",
"usr/share/geminux/wallpapers/geminux-light.png",
"etc/skel/.config/geminux/wallpaper.conf",
"home/user/.config/geminux/wallpaper.conf"):
if not os.path.lexists(os.path.join(rootfs, req_rel)):
raise SystemExit(f"FAIL: missing required path {os.path.join(rootfs, req_rel)}")
if os.path.lexists(os.path.join(rootfs, "usr/lib/geminux-mpv")):
@@ -431,6 +435,8 @@ for rel, needle in (
("usr/bin/geminux-launcher", "Webarchy Browser"),
("usr/bin/geminux-launcher", "Bantam AI agent"),
("usr/bin/geminux-launcher", "Wallpaper"),
("etc/skel/.config/geminux/wallpaper.conf", "PATH=/usr/share/geminux/wallpapers/geminux-dark.png"),
("home/user/.config/geminux/wallpaper.conf", "PATH=/usr/share/geminux/wallpapers/geminux-dark.png"),
):
p = os.path.join(rootfs, rel)
with open(p, "r", encoding="utf-8") as f:
@@ -519,6 +525,15 @@ docker run --rm -i -v "$IMAGES_DIR:/images:ro" -v "$BASE_DIR/prebuilt/kernel/boo
debugfs -R "stat /home/user" /images/geminux-rootfs.img | grep -qE "User:[[:space:]]*10000\b" || {
echo "FAIL: geminux-rootfs.img /home/user is not UID 10000" >&2; exit 1;
}
debugfs -R "stat /usr/share/geminux/wallpapers/geminux-dark.png" /images/geminux-rootfs.img | grep -qE "Mode:[[:space:]]*0?(10)?0644\b" || {
echo "FAIL: geminux-rootfs.img /usr/share/geminux/wallpapers/geminux-dark.png missing or not 0644" >&2; exit 1;
}
debugfs -R "stat /usr/share/geminux/wallpapers/geminux-light.png" /images/geminux-rootfs.img | grep -qE "Mode:[[:space:]]*0?(10)?0644\b" || {
echo "FAIL: geminux-rootfs.img /usr/share/geminux/wallpapers/geminux-light.png missing or not 0644" >&2; exit 1;
}
debugfs -R "stat /home/user/.config/geminux/wallpaper.conf" /images/geminux-rootfs.img | grep -qE "User:[[:space:]]*10000\b" || {
echo "FAIL: geminux-rootfs.img /home/user/.config/geminux/wallpaper.conf missing or not UID 10000" >&2; exit 1;
}
DTS_OUT="$(dtc -I dtb -O dts /kboot/mt6797-gemini-pda-geminux.dtb 2>/dev/null)"
printf "%s\n" "$DTS_OUT" | grep -qE "^\tmemory \{$" || { echo "FAIL: DTB missing /memory node" >&2; exit 1; }
if printf "%s\n" "$DTS_OUT" | grep -qE "^\tmemory@40000000 \{$"; then