mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
hypha: add script for quick debugging and set log levels ot warn by default
This commit is contained in:
13
scripts/hyphactl-debug.sh
Executable file
13
scripts/hyphactl-debug.sh
Executable 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 "${@}"
|
Reference in New Issue
Block a user