2022-03-12 17:22:40 +01:00
|
|
|
# Build the environment
|
2022-03-12 15:53:31 +01:00
|
|
|
mkdir -p rootfs/etc/nimd
|
|
|
|
cp nimd.conf rootfs/etc/nimd/nimd.conf
|
2022-03-12 17:22:40 +01:00
|
|
|
nim -o:rootfs/bin/nimd -d:release --gc:orc --opt:size --passL:"-static" compile src/main.nim
|
|
|
|
nim -o:rootfs/bin/halt -d:release --gc:orc --opt:size --passL:"-static" compile src/programs/halt.nim
|
|
|
|
nim -o:rootfs/bin/reboot -d:release --gc:orc --opt:size --passL:"-static" compile src/programs/reboot.nim
|
|
|
|
nim -o:rootfs/bin/poweroff -d:release --gc:orc --opt:size --passL:"-static" compile src/programs/poweroff.nim
|
|
|
|
|
|
|
|
# Start the VM
|
|
|
|
./scripts/boot.sh --kernel vmlinuz-linux --initrd initrd-linux.img --memory 1G --build
|