hypha: add script for quick debugging and set log levels ot warn by default

This commit is contained in:
Alex Zenla committed 2024-02-01 10:28:17 +00:00
1 parent bd56de235f
commit e7cea3d7ed
4 files changed
+18 -2

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ -z "${RUST_LOG}" ]
then
RUST_LOG="INFO"
fi
cd "$(dirname "${0}")/.."
./initrd/build.sh
sudo cp "target/initrd/initrd" "/var/lib/hypha/default/initrd"
cargo build --target x86_64-unknown-linux-gnu --bin hyphactl
exec sudo RUST_LOG="${RUST_LOG}" target/x86_64-unknown-linux-gnu/debug/hyphactl "${@}"