hypha: init will now watch process in background

This commit is contained in:
Alex Zenla
2024-01-31 01:40:42 -08:00
parent b6af5f54bd
commit 86c512474a
7 changed files with 77 additions and 20 deletions

View File

@ -7,7 +7,8 @@ HYPHA_DIR="${PWD}"
cargo build --release --target x86_64-unknown-linux-gnu
INITRD_DIR="$(mktemp -d /tmp/hypha-initrd.XXXXXXXXXXXXX)"
cp target/x86_64-unknown-linux-gnu/release/hyphactr "${INITRD_DIR}/init"
chmod +x "${INITRD_DIR}/init"
cd "${INITRD_DIR}"
mkdir -p "${HYPHA_DIR}/target/initrd"
find . | cpio -o -H newc --quiet > "${HYPHA_DIR}/target/initrd/initrd"
find . | cpio -R 0:0 --reproducible -o -H newc --quiet > "${HYPHA_DIR}/target/initrd/initrd"
rm -rf "${INITRD_DIR}"