initrd: remove tmpdir after building cpio

This commit is contained in:
Alex Zenla 2024-01-30 18:13:31 -08:00
parent d3740bcf7b
commit 5e21d32295
No known key found for this signature in database
GPG Key ID: 067B238899B51269

View File

@ -10,3 +10,4 @@ cp target/x86_64-unknown-linux-gnu/release/hyphactr "${INITRD_DIR}/init"
cd "${INITRD_DIR}"
mkdir -p "${HYPHA_DIR}/target/initrd"
find . | cpio -o -H newc --quiet > "${HYPHA_DIR}/target/initrd/initrd"
rm -rf "${INITRD_DIR}"