mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Implement SparkOS MVP: init system, build infrastructure, and rootfs
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
18
rootfs/README.txt
Normal file
18
rootfs/README.txt
Normal 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
5
rootfs/etc/fstab
Normal 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
1
rootfs/etc/group
Normal file
@@ -0,0 +1 @@
|
||||
root:x:0:
|
||||
1
rootfs/etc/hostname
Normal file
1
rootfs/etc/hostname
Normal file
@@ -0,0 +1 @@
|
||||
sparkos
|
||||
3
rootfs/etc/hosts
Normal file
3
rootfs/etc/hosts
Normal 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
1
rootfs/etc/passwd
Normal file
@@ -0,0 +1 @@
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
11
rootfs/etc/profile
Normal file
11
rootfs/etc/profile
Normal 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
13
rootfs/root/.bashrc
Normal 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
|
||||
Reference in New Issue
Block a user