Implement SparkOS MVP: init system, build infrastructure, and rootfs

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-28 15:03:31 +00:00
parent 0ab69f4dbc
commit ae278dc384
18 changed files with 980 additions and 1 deletions

18
rootfs/README.txt Normal file
View File

@@ -0,0 +1,18 @@
SparkOS Root Filesystem
=======================
This is the root filesystem for SparkOS, a minimal Linux distribution.
Directory Structure:
/bin, /sbin - Essential binaries
/etc - Configuration files
/proc, /sys, /dev - Kernel interfaces
/tmp - Temporary files
/usr - User programs
/var - Variable data
/root - Root home directory
/home - User home directories
Note: This is a minimal system. You'll need to populate /bin and /usr/bin
with actual binaries (bash, coreutils, etc.) from a proper Linux system
or by cross-compiling.

5
rootfs/etc/fstab Normal file
View File

@@ -0,0 +1,5 @@
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devtmpfs /dev devtmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0

1
rootfs/etc/group Normal file
View File

@@ -0,0 +1 @@
root:x:0:

1
rootfs/etc/hostname Normal file
View File

@@ -0,0 +1 @@
sparkos

3
rootfs/etc/hosts Normal file
View File

@@ -0,0 +1,3 @@
127.0.0.1 localhost
127.0.1.1 sparkos
::1 localhost ip6-localhost ip6-loopback

1
rootfs/etc/passwd Normal file
View File

@@ -0,0 +1 @@
root:x:0:0:root:/root:/bin/bash

11
rootfs/etc/profile Normal file
View File

@@ -0,0 +1,11 @@
# SparkOS System Profile
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PS1='SparkOS:\w\$ '
export HOME=/root
export TERM=linux
# Welcome message
echo "Welcome to SparkOS!"
echo "Type 'help' for available commands"
echo ""

13
rootfs/root/.bashrc Normal file
View File

@@ -0,0 +1,13 @@
# SparkOS Root Bash Configuration
# Set prompt
PS1='SparkOS:\w# '
# Aliases
alias ls='ls --color=auto'
alias ll='ls -lah'
alias ..='cd ..'
# Environment
export EDITOR=vi
export PAGER=less