aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
AgeCommit message (Collapse)Author
12 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>
2026-10-16internal/testsuite: optional insecure argumentOphestra
This allows testing insecure configurations. This change also improves error reporting and fixes non-startup-notification behaviour. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional verbose outputOphestra
Used by some tests to inspect cmd/hakurei internals. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: optional startup notificationOphestra
This is only really used by the sandbox test suite for seccomp validation. Make it optional here to simplify other use cases. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-15internal/testsuite: silence session servicesOphestra
These are too noisy and are not useful outside of debugging the test suite itself, so silence them by default. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14internal/testsuite: move helpers from cmd/hakureiOphestra
These helpers are useful across multiple test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14hst: pass through adopt wait delay with boundsOphestra
This is a useful value to customise, primarily useful for test suites but can also generally improve exit latency for stubborn applications. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-14cmd/dist: allow forcing dynamic linkingOphestra
This remains unsupported, but is useful during testing, or when packaging for some particularly stubborn distros. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-13all: use Linux kernel coding styleOphestra
The Gitea web interface is no longer publicly accessible, so it no longer matters that this code style does not render well on Gitea. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-12cmd/hakurei/testsuite: extra exercise parametersOphestra
This also removes the interval and fixes the mustStart search criteria. Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-10-13cmd/hakurei/testsuite: exercise setup/teardownOphestra
This exposes a race during simultaneous startup between chmod and acl_set_file, where the ACL mask is clobbered by chmod. This remained undiscovered until now due to the previous integration test suite's complete inability to handle concurrency (the nixos vm test machinery could not even support python multithreading). Signed-off-by: Ophestra <cat@gensokyo.uk>