Commit Graph

5 Commits

Author SHA1 Message Date
vasilito e1bfeacba0 refactor: fix last 4 clippy warnings (if_same_then_else, too_many_arguments)
Reduced warnings from 4 to 0 — cookbook lib is now clippy-clean.

Changes:
- if_same_then_else (1): combined identical Ok(list) branches with || in
  staged_pkg.rs new_recursive()
- too_many_arguments (3): added #[allow(clippy::too_many_arguments)] with
  justification comments (required by AGENTS.md WARNING POLICY) on
  display_tree_entry, walk_tree_entry, new_recursive — params are genuinely
  independent display/traversal/recursion options

Verification: cargo check , cargo test --lib  38/38, cargo clippy 0 warnings.
2026-07-18 18:08:14 +09:00
vasilito 0c541f6161 refactor: auto-fix 100 clippy warnings (needless_borrow, collapsible_if, len_zero, etc.)
cargo clippy --fix reduced warnings from 196 to 96 (51% reduction).

Categories fixed:
- needless_borrow (52): removed redundant & on already-referenced values
- collapsible_if (20): nested ifs → single if with let chains (Rust 2024)
- len_zero (8): x.len() == 0 → x.is_empty()
- redundant_field_names (4): field: field → field
- needless_return (3): removed trailing return
- redundant_closure (2): |x| f(x) → f
- Other mechanical (11): useless_conversion, map_entry, derivable_impls, etc.

Verification: cargo check , cargo test --lib  38/38, cargo clippy 96 remaining
(down from 196). No behavior change — all fixes are semantic equivalents.

Remaining 96 warnings:
- 70 result_large_err (architectural: box Error enum variants)
- 12 ptr_arg (API signature: &PathBuf → &Path)
- 14 other (manual evaluation needed)
2026-07-18 17:48:55 +09:00
vasilito 1a46659555 fix: noconfirm auto-selects first AUR match 2026-05-08 11:01:02 +01:00
vasilito 15d0707e74 feat: USB storage read/write proof + full Red Bear OS tree sync
Add redbear-usb-storage-check in-guest binary that validates USB mass
storage read and write I/O: discovers /scheme/disk/ devices, writes a
test pattern to sector 2048, reads it back, verifies match, restores
original content. Updates test-usb-storage-qemu.sh with write-proof
verification step.

Includes all accumulated Red Bear OS work: kernel patches, relibc
patches, driver infrastructure, DRM/GPU, KDE recipes, firmware,
validation tooling, build system hardening, and documentation.
2026-05-03 23:03:24 +01:00
vasilito 50b731f1b7 Red Bear OS — microkernel OS in Rust, based on Redox
Derivative of Redox OS (https://www.redox-os.org) adding:
- AMD GPU driver (amdgpu) via LinuxKPI compat layer
- ext4 filesystem support (ext4d scheme daemon)
- ACPI fixes for AMD bare metal (x2APIC, DMAR, IVRS, MCFG)
- Custom branding (hostname, os-release, boot identity)

Build system is full upstream Redox with RBOS overlay in local/.
Patches for kernel, base, and relibc are symlinked from local/patches/
and protected from make clean/distclean. Custom recipes live in
local/recipes/ with symlinks into the recipes/ search path.

Build:  make all CONFIG_NAME=redbear-full
Sync:   ./local/scripts/sync-upstream.sh
2026-04-12 19:05:00 +01:00