mirror of
https://github.com/YusufOzmen01/quest-kexec.git
synced 2026-10-26 19:37:39 +00:00
Add turnkey Quest Pro alternate Android release tooling
This commit is contained in:
28 files changed
+1117
-29
No files matched your search
@@ -81,6 +81,10 @@ def main():
|
||||
raise SystemExit(f"{partitions}: missing; rerun tools/os-install.sh")
|
||||
entries.append(("etc/qkx/partitions", stat.S_IFREG | 0o644,
|
||||
partitions.read_bytes(), 0, 0))
|
||||
turnkey = a.os_dir / "qkx-turnkey.json"
|
||||
if turnkey.is_file():
|
||||
entries.append(("etc/qkx/turnkey.json", stat.S_IFREG | 0o600,
|
||||
turnkey.read_bytes(), 0, 0))
|
||||
maps = sorted((a.os_dir / "maps").glob("*.map"))
|
||||
if not maps:
|
||||
raise SystemExit(f"{a.os_dir}/maps: no extent maps found")
|
||||
|
||||
+4
-1
@@ -88,7 +88,10 @@ if [ -d /etc/qkx/maps ]; then
|
||||
qkx-mount-os >/tmp/mount-os.log 2>&1
|
||||
status=$?
|
||||
cat /tmp/mount-os.log
|
||||
if [ $status -eq 0 ]; then
|
||||
if [ $status -eq 0 ] && [ -f /etc/qkx/turnkey.json ]; then
|
||||
log 'turnkey OS mounted; launching Android automatically'
|
||||
qkx-launch-android
|
||||
elif [ $status -eq 0 ]; then
|
||||
log 'custom OS mounted at /android; run qkx-launch-android to start it'
|
||||
else
|
||||
log "qkx-mount-os failed (status $status); see /tmp/mount-os.log"
|
||||
|
||||
@@ -122,6 +122,13 @@ for n in /dev/qkx/*; do
|
||||
mknod "$ROOT$n" b $((0x$1)) $((0x$2))
|
||||
done
|
||||
|
||||
# Private per-launch calibration arrives from the running stock OS, not /data.
|
||||
# Keep it on the new /dev tmpfs so it cannot become part of a distributable image.
|
||||
if [ -s /qkx-stock-eye-calibration.json ]; then
|
||||
cp /qkx-stock-eye-calibration.json "$ROOT/dev/qkx-stock-eye-calibration.json"
|
||||
chmod 600 "$ROOT/dev/qkx-stock-eye-calibration.json"
|
||||
fi
|
||||
|
||||
qkx-patch-fstab "$ROOT"
|
||||
qkx-patch-usb "$ROOT"
|
||||
qkx-apply-overrides "$ROOT"
|
||||
|
||||
Reference in new issue
Block a user