diff --git a/Dockerfile b/Dockerfile index dbdf25f..4fdbc13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,42 +56,7 @@ RUN echo "sparkos" > /sparkos/rootfs/etc/hostname && \ echo "spark:x:1000:" >> /sparkos/rootfs/etc/group # Create a test entrypoint -COPY <<'EOF' /sparkos/test.sh -#!/bin/sh -echo "SparkOS Docker Test Environment" -echo "================================" -echo "" -echo "SparkOS init binary: /sparkos/rootfs/sbin/init" -echo "" -echo "Verifying init binary..." -if [ -f /sparkos/rootfs/sbin/init ]; then - echo "✓ Init binary exists" - ls -lh /sparkos/rootfs/sbin/init - echo "" - echo "File type:" - if command -v file >/dev/null 2>&1; then - file /sparkos/rootfs/sbin/init - else - echo " (file command not available)" - fi - echo "" - echo "Dependencies:" - ldd /sparkos/rootfs/sbin/init 2>&1 || echo " Static binary (no dependencies)" -else - echo "✗ Init binary not found!" - exit 1 -fi -echo "" -echo "Root filesystem structure:" -ls -la /sparkos/rootfs/ -echo "" -echo "SparkOS is ready for testing!" -echo "" -echo "To test the init system:" -echo " docker run --rm /sparkos/rootfs/sbin/init --help" -echo "" -EOF - +COPY scripts/test.sh /sparkos/test.sh RUN chmod +x /sparkos/test.sh WORKDIR /sparkos diff --git a/config/image-readme.txt b/config/image-readme.txt new file mode 100644 index 0000000..08cc0d6 --- /dev/null +++ b/config/image-readme.txt @@ -0,0 +1,20 @@ +SparkOS UEFI-Bootable Image + +This is a UEFI-bootable disk image with: +- GPT partition table +- EFI System Partition (ESP) with FAT32 filesystem +- GRUB UEFI bootloader +- Linux kernel +- SparkOS init system +- Busybox utilities + +The image can be written to a USB drive and booted on UEFI systems: + sudo dd if=sparkos.img of=/dev/sdX bs=4M status=progress + sudo sync + +Boot options: +- UEFI boot support (tested on x86_64 systems) +- Automatic boot after 3 seconds +- Console on tty1 + +For more information, see: https://github.com/johndoe6345789/SparkOS diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 0000000..9ce8d98 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,33 @@ +#!/bin/sh +echo "SparkOS Docker Test Environment" +echo "================================" +echo "" +echo "SparkOS init binary: /sparkos/rootfs/sbin/init" +echo "" +echo "Verifying init binary..." +if [ -f /sparkos/rootfs/sbin/init ]; then + echo "✓ Init binary exists" + ls -lh /sparkos/rootfs/sbin/init + echo "" + echo "File type:" + if command -v file >/dev/null 2>&1; then + file /sparkos/rootfs/sbin/init + else + echo " (file command not available)" + fi + echo "" + echo "Dependencies:" + ldd /sparkos/rootfs/sbin/init 2>&1 || echo " Static binary (no dependencies)" +else + echo "✗ Init binary not found!" + exit 1 +fi +echo "" +echo "Root filesystem structure:" +ls -la /sparkos/rootfs/ +echo "" +echo "SparkOS is ready for testing!" +echo "" +echo "To test the init system:" +echo " docker run --rm /sparkos/rootfs/sbin/init --help" +echo ""