Create an init process in Rust that can mount the initial file systems appropriately.
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p artifacts/ramdisk
|
||||
docker run --rm -v "$(pwd)/artifacts/ramdisk:/build/artifacts" lam-kernel bash -c "cd /build/ramfs && ./buildramfs.sh && cp initramfs /build/artifacts/initramfs.cpio.gz"
|
||||
BASE=target/x86_64-unknown-linux-musl/release/
|
||||
|
||||
mkdir -p target/image
|
||||
cp ${BASE}/init target/image/init
|
||||
|
||||
docker run --rm \
|
||||
-v "$(pwd)/artifacts/ramdisk:/build/artifacts" \
|
||||
-v "$(pwd)/target/image:/build/ramfs/image" \
|
||||
lam-kernel \
|
||||
bash -c "cd /build/ramfs && ./buildramfs.sh && cp initramfs /build/artifacts/initramfs.cpio.gz"
|
||||
Reference in New Issue
Block a user