Files
RedBear-OS/config
vasilito 9390c40194 build: fix ARCH export and remove spurious USB-device init services
Three Phase 1.3/2.4 fixes that have real runtime impact:

1. local/scripts/build-redbear.sh: Export ARCH and HOST_ARCH at the top
   of the script (derived from uname -m when unset). This fixes the
   'Unsupported ARCH for QEMU ""' error from the auto-rebuild-prefix
   path introduced in Phase 1.3 — the env(1) wrapper was masking
   the variables, and even without it mk/config.mk needed explicit
   ARCH to be exported to subprocesses. The prefix rule now succeeds
   when the fork source is newer than prefix/x86_64-unknown-redox/sysroot.

2. config/redbear-device-services.toml: Remove the three init.d service
   files 16_redbear-{acmd,ecmd,usbaudiod}.service. These are USB device
   daemons that take <scheme> <port> [<iface>] arguments and panic on
   missing args. They are spawned dynamically by pcid-spawner (00_driver-
   manager.service) when matching USB hardware is detected. Starting
   them as init services caused the boot to fail with
   'thread main panicked at redbear-acmd <scheme> <port> <iface>'.
   The binaries are still installed via the [packages] section so
   pcid-spawner can find and exec them. This matches the Linux model
   where cdc_acm / cdc_eem / snd-usb-audio are kernel modules or
   udev-spawned, not init services.

3. config/redbear-mini.toml: Add explicit '-K us' to
   29_activate_console.service so the inputd daemon activates VT 2 with
   a deterministic keymap. Combined with the Russian (ЙЦУКЕН) keymap
   added in commit 75f5480f, all 7 layouts (US, GB, Dvorak, Azerty, Bepo,
   IT, RU) are now selectable via 'inputd -K <layout>' or by editing
   this service.
2026-07-08 22:00:03 +03:00
..