Enable MT6797 Wi-Fi/BT, PipeWire audio GUI, cursor autohide, and dev tools

- Add MT6797 CONSYS Wi-Fi/BT factory-firmware patch (0005), native EAPOL TX, 5 GHz NO_IR/regulatory-notifier fixes, TKIP/CCMP admission, initramfs regdb, and geminux-wifi-nvram
- Order OpenRC polkit startup before NetworkManager/ModemManager and harden geminux-net with non-blocking scans, mesh SSID grouping, password masking toggle, and BT A2DP/HFP/LE/HID support
- Add geminux-audio PipeWire/WirePlumber/UCM2 playback & recording control GUI alongside st and dmenu XFixes cursor autohide
- Preinstall requested CLI/dev tools (bash, coreutils, build-base, git, nmtui, perl/SSL, curl-dev, janet, jpm, etc.) and set bash as system-wide default shell
This commit is contained in:
Luxferre committed 2026-11-22 22:31:41 +02:00
1 parent ba7b86e570
commit 6aea73cbeb
92 files changed
+5524 -198

No files matched your search

+25 -4
View File
@@ -23,13 +23,12 @@ if grep -qi 'postmarketos' "$ROOTFS_DIR/etc/apk/repositories"; then
fi
echo "OK"
echo "[2/8] Checking excluded Wayland/Rust/compiler/upstream packages..."
echo "[2/8] Checking excluded Wayland/Rust/upstream packages..."
for bad_pkg in sway wayfire weston phosh cage xwayland grim slurp wofi \
sudo-rs postmarketos-base-sudo-rs rust cargo librsvg libglycin rav1e \
rav1e-libs libdovi mesa-rusticl gdk-pixbuf adwaita-icon-theme imv-x11 \
gst-libav gst-plugins-bad gst-plugins-good libnotify \
linux-edge linux-lts xorg-server xf86-input-libinput xf86-video-fbdev \
gcc g++ musl-dev make; do
linux-edge linux-lts xorg-server xf86-input-libinput xf86-video-fbdev; do
if grep -Fxq "P:$bad_pkg" "$ROOTFS_DIR/lib/apk/db/installed"; then
echo "FAIL: forbidden package '$bad_pkg' is installed in rootfs" >&2
exit 1
@@ -195,11 +194,15 @@ if "CONFIG_REGULATOR_FIXED_VOLTAGE=y" not in kcfg.splitlines():
rootfs = sys.argv[4]
for req_rel in ("etc/pam.d/autologin", "etc/init.d/geminux-hwinit",
"usr/lib/dri/simpledrm_dri.so", "etc/runlevels/boot/geminux-usb-gadget",
"usr/share/X11/xkb/types/custom", "usr/sbin/dnsmasq"):
"usr/share/X11/xkb/types/custom", "usr/sbin/dnsmasq",
"etc/NetworkManager/conf.d/20-geminux-wifi.conf", "etc/shells",
"usr/sbin/geminux-wifi-nvram", "etc/polkit-1/rules.d/10-geminux.rules"):
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, "etc/runlevels/sysinit/hwdrivers")):
raise SystemExit("FAIL: hwdrivers must not be enabled in sysinit")
if os.path.lexists(os.path.join(rootfs, "etc/runlevels/default/wpa_supplicant")):
raise SystemExit("FAIL: wpa_supplicant must not be enabled in default runlevel")
with open(os.path.join(rootfs, "etc/inittab"), "r", encoding="utf-8") as f:
for line in f:
if line.startswith("tty1::respawn:"):
@@ -210,6 +213,9 @@ for rel, needle in (
("etc/X11/xorg.conf.d/30-geminux-keyboard.conf", "custom:types"),
("etc/X11/xorg.conf.d/20-geminux-touch.conf", "0 -1 1 1 0 0 0 0 1"),
("etc/conf.d/geminux-hwinit", 'GEMINUX_ENABLE_MEDIATEK_DRM="yes"'),
("etc/NetworkManager/conf.d/20-geminux-wifi.conf", "wifi.scan-rand-mac-address = no"),
("etc/NetworkManager/conf.d/20-geminux-wifi.conf", "wifi-sec.pmf = 1"),
("etc/shells", "/bin/bash"),
):
p = os.path.join(rootfs, rel)
with open(p, "r", encoding="utf-8") as f:
@@ -253,6 +259,21 @@ docker run --rm -i -v "$IMAGES_DIR:/images:ro" -v "$BASE_DIR/prebuilt/kernel/boo
debugfs -R "stat /usr/bin/doas" /images/geminux-rootfs.img | grep -qE "Mode:[[:space:]]*04755\b" || {
echo "FAIL: geminux-rootfs.img /usr/bin/doas is not mode 04755" >&2; exit 1;
}
debugfs -R "stat /usr/libexec/dbus-daemon-launch-helper" /images/geminux-rootfs.img | grep -qE "Mode:[[:space:]]*04750\b" || {
echo "FAIL: geminux-rootfs.img /usr/libexec/dbus-daemon-launch-helper is not mode 04750" >&2; exit 1;
}
debugfs -R "stat /usr/libexec/dbus-daemon-launch-helper" /images/geminux-rootfs.img | grep -qE "User:[[:space:]]*0\b" || {
echo "FAIL: geminux-rootfs.img /usr/libexec/dbus-daemon-launch-helper is not UID 0" >&2; exit 1;
}
debugfs -R "stat /usr/libexec/dbus-daemon-launch-helper" /images/geminux-rootfs.img | grep -qE "Group:[[:space:]]*103\b" || {
echo "FAIL: geminux-rootfs.img /usr/libexec/dbus-daemon-launch-helper is not GID 103" >&2; exit 1;
}
debugfs -R "stat /etc/polkit-1/rules.d" /images/geminux-rootfs.img | grep -qE "Mode:[[:space:]]*0?4?0750\b" || {
echo "FAIL: geminux-rootfs.img /etc/polkit-1/rules.d is not mode 0750" >&2; exit 1;
}
debugfs -R "stat /etc/polkit-1/rules.d" /images/geminux-rootfs.img | grep -qE "Group:[[:space:]]*110\b" || {
echo "FAIL: geminux-rootfs.img /etc/polkit-1/rules.d is not GID 110" >&2; exit 1;
}
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;
}