mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
15 lines
370 B
Bash
Executable File
15 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if [ -z "${RUST_LOG}" ]
|
|
then
|
|
RUST_LOG="INFO"
|
|
fi
|
|
|
|
REAL_SCRIPT="$(realpath "${0}")"
|
|
cd "$(dirname "${REAL_SCRIPT}")/.."
|
|
./initrd/build.sh -q
|
|
sudo cp "target/initrd/initrd" "/var/lib/krata/default/initrd"
|
|
cargo build --target x86_64-unknown-linux-gnu --bin kratactl
|
|
exec sudo RUST_LOG="${RUST_LOG}" target/x86_64-unknown-linux-gnu/debug/kratactl "${@}"
|