aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
15 hoursinternal/rosa: update packagesOphestra
Kernel headers, CMake, and LLVM toolchain are updated, causing many rebuilds. The kernel-version package is fixed to not depend on artifacts unavailable during bootstrap. GNU autogen latest function is set to deal with bad anitya data marked as pre-releases. The latest spirv-llvm-translator release remains broken. A flex release fixed the regression breaking iproute2, and is included. A libseccomp release changed filter output. Test checksums are updated. Older, vulnerable versions are no longer supported. Signed-off-by: Ophestra <cat@gensokyo.uk>
35 hoursinternal/rosa: source TOFU update helperOphestra
This replaces the version value of a package declaration to acquire checksum via TOFU. Signed-off-by: Ophestra <cat@gensokyo.uk>
2 daysinternal/rosa: run cmd/hakurei/testsuiteOphestra
This adds a specialised Rosa OS image and runs cmd/hakurei/testsuite in a Rosa OS qemu guest. Emulation for riscv64 and ppc64le is currently broken. Signed-off-by: Ophestra <cat@gensokyo.uk>
4 daysinternal/testsuite: notify on long proc scansOphestra
This prints a message every second for a long-running proc scan. Signed-off-by: Ophestra <cat@gensokyo.uk>
4 daysinternal/testsuite: accept flags in hakurei helperOphestra
This avoids changing function signature when adding new flags. Signed-off-by: Ophestra <cat@gensokyo.uk>
4 daysinternal/testsuite: notify on long sway pollsOphestra
This prints a message every second for a long-running sway poll. Signed-off-by: Ophestra <cat@gensokyo.uk>
4 dayscmd/hakurei/testsuite: run mako on Rosa OSOphestra
This avoids running into inconsistent error messages, and is overall just a better way to test dbus. Signed-off-by: Ophestra <cat@gensokyo.uk>
4 dayscmd/hakurei/testsuite: accept new libnotify outputOphestra
This error message appeared to have changed since the archaic version packaged for gitea actions. This change accepts both messages. Signed-off-by: Ophestra <cat@gensokyo.uk>
9 dayscmd/hakurei/testsuite: use wayland-utilsOphestra
This is simpler and more reliable than verifying security context via a grim error message. Signed-off-by: Ophestra <cat@gensokyo.uk>
12 dayscmd/hakurei/testsuite: avoid hardcoding prefixOphestra
Rosa OS does not use the common /usr prefix. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/hakurei/testsuite: replace argument for fd testOphestra
In the Rosa OS environment, 5 ends up left open when the file itself is removed. This causes EINVAL. This change replaces the fd number instead. Signed-off-by: Ophestra <cat@gensokyo.uk>
13 dayscmd/hakurei/testsuite: remove sleep GNU-ismOphestra
The infinity argument is not available in lksh or toybox. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-10cmd/earlyinit: work around pivot_root limitationOphestra
The rootfs (initial ramfs) cannot be pivot_root()ed. This change works around that limitation by making / a bind mount of the rootfs. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-10cmd/earlyinit: mount cgroupOphestra
This does not require additional state, so mount it early. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-10cmd/earlyinit: optionally make misc bindableOphestra
This is only used by the test suite. Autoroot is generally never used. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-10cmd/hakurei/testsuite: use /bin/shOphestra
This is available on Rosa OS via the compatibility symlink. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-10cmd/earlyinit: suppress printk on fatalOphestra
This removes printk noise after the system is unable to continue its boot process, so the error message does not get scrolled away. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-09internal/testsuite: populate passwd databaseOphestra
This keeps musl happy for now. Currently, only dbus daemon and pipewire wants this, and both pieces of software will eventually be replaced, anyway. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/earlyinit: optionally force kmsg redirectionOphestra
This increases output readability in the test suite. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hakurei/testsuite: format expected ldd outputOphestra
This message is different between the musl and glibc implementations. This change assumes the non-Rosa test suite uses glibc, since it is only ran on the Gitea actions runner. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hakurei/testsuite: use Rosa OS prefixOphestra
This uses the correct prefix when compiled for Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-08cmd/hsu: move Rosa OS hsurcOphestra
This file is generated by the operating system. Pointing it to /system requires ugly tricks to bind mount over it. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-07cmd/earlyinit: make compatibility symlinksOphestra
Legacy software like the X server hardcodes a FHS path to the shell. Since Rosa OS does not mount over /, this has to be created during boot. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-06cmd/earlyinit: ignore trivial by defaultOphestra
It does not make sense to dispatch trivial errors in user-facing builds. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-06cmd/dist: override CC/CXX for cross onlyOphestra
The Rosa OS target triple does not work outside of Rosa OS. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally skip remountOphestra
Useful during testing and debugging to leave / writable. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: explicit MS_RDONLY mounting systemOphestra
This prevents the kernel from attempting to write to the device, even though squashfs itself is read-only. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally mount host directoryOphestra
Useful for sharing a directory during integration testing. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: optionally mount /tmpOphestra
This directory is not used by Rosa OS, but may be useful during testing. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-03cmd/earlyinit: initial process option for debuggingOphestra
This optionally halts the boot process to run the specified program. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-01internal/rosa: do not hard code filename prefixOphestra
The hardcoded name is not correct for externally registered files. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-11-01cmd/dist: disable testing if cross-compilingOphestra
QEMU does not support most things worth testing, and supported tests that invoke a binary still requires binfmt to work correctly. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-27internal/pipewire: improve path error reportingOphestra
This replaces SyscallError with PathError when pathnames are involved. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26release: 0.4.10v0.4.10Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26cmd/dist: enable ppc64le cross-compilationOphestra
The ppc64le target is currently cross-only due to the lack of test constants. A future change may downgrade riscv64 to the same status. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-26cmd/mbf: do not append cross packages for cleanOphestra
Not all packages support cross-compilation. This removes cross packages from artifacts kept during cleanup for now. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-25cmd/mbf: improve cross-compile error messageOphestra
This removes the unnecessary azalea AST information. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-23cmd/dist: cross-compile via clangOphestra
The cross-compiled sysroot can now be provided by internal/rosa. Unfortunately pkg-config still had to be configured externally to avoid making any assumptions about the prefix. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-22internal/rosa: initial cross-compilation supportOphestra
This successfully cross-compiles the toolchain. More work is needed to support cross-compilation on all native helpers and existing packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-19release: 0.4.9v0.4.9Ophestra
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18internal/system: file-based big lockOphestra
Simultaneous commits or reverts can race if they have overlapping targets. This big lock synchronises entry into the Commit and Revert critical sections across all cmd/hakurei processes. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: handle dynamic linker raceOphestra
This retries when seeing files opened by the dynamic linker. This will eventually be replaced by a statically linked anchor program that never opens any files on its own. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: improve sandbox reportingOphestra
This avoids swallowing error messages from failed container startups. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: compare command outputOphestra
This is much more precise than just simply checking the exit code. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: synchronise after terminationOphestra
This ensures that cmd/hakurei has finished cleanup and terminated before validating the outcome of that cleanup. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-18cmd/hakurei/testsuite: move rts test out of loopOphestra
This was inadvertently placed inside the setscheduler loop due to miscounting indentations. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: set credentials for store accessOphestra
This avoids breaking ownership of lock files. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: optional retriesOphestra
This implements retries of individual test cases and enables it for pipewire and X tests. PipeWire and X server are quite flaky, and that cannot be fixed by anything cmd/hakurei does. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: additional cleanup checksOphestra
These were pretty difficult to do properly in the nixos-based test suite. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-17cmd/hakurei/testsuite: migrate testsOphestra
This runs much faster than the NixOS test suite, and is much more precise. This also uncovered a recent severe pipewire regression. This change removes all remaining deprecated nix code. Closes #22. Signed-off-by: Ophestra <cat@gensokyo.uk>