v2.0: Migrate from BusyBox init to systemd

- Replace BusyBox userspace with Debian Bookworm minbase (344MB rootfs)
- systemd 252 as init system with service management
- systemd-networkd for DHCP networking
- systemd-resolved for DNS resolution
- Custom Nova OS boot splash service
- Updated mkimage.sh, Makefile, and README
- Image: nova-os-2.0-systemd.img (1.5GB)
- Root password: nova (change on first login)
This commit is contained in:
blazblue547-afk committed 2026-06-14 09:59:09 -04:00
1 parent e0ae8ed87b
commit 8a622dfb9e
39 files changed
+583 -178

No files matched your search

+4 -5
View File
@@ -1,5 +1,4 @@
Nova OS /dev/mmcblk0p2 / ext4 defaults,noatime 0 1
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devtmpfs /dev devtmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
# Nova OS fstab
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 2
tmpfs /tmp tmpfs defaults,noatime 0 0
+1 -1
View File
@@ -1 +1 @@
Nova OS
nova-os
-13
View File
@@ -1,13 +0,0 @@
#!/bin/sh
# Nova OS rcS — early boot
echo "Nova OS booting..."
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev
mount -t tmpfs tmpfs /tmp
mount -t tmpfs tmpfs /run
mdev -s
hostname nova-os
-7
View File
@@ -1,7 +0,0 @@
# Nova OS inittab
::sysinit:/etc/init.d/rcS
::sysinit:/bin/hostname -F /etc/hostname
::respawn:/sbin/getty 38400 tty1
::respawn:/sbin/getty 38400 ttyAMA0
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
+1 -3
View File
@@ -1,4 +1,2 @@
Nova OS 1.0 "Starlight" — Linux 7.0.12-nova-os
Burn bright, run light.
Debian GNU/Linux 12 \n \l
https://github.com/blazblue547-afk/nova-os
+1
View File
@@ -0,0 +1 @@
/usr/share/zoneinfo/America/New_York
+8 -15
View File
@@ -1,17 +1,10 @@
╔══════════════════════════════════════╗
║ N O V A O S ║
║ kernel 7.0.12-nova-os ║
║ \"Burn bright, run light.\" ║
╚══════════════════════════════════════╝
╔══════════════════════════════════════════╗
║ N O V A O S ║
║ kernel 7.0.12-nova-os ║
║ "Burn bright, run light." ║
╚══════════════════════════════════════════╝
Powered by systemd · Debian Bookworm
GitHub: https://github.com/blazblue547-afk/nova-os
Welcome to Nova OS — a lightweight, blazing fast Linux distribution
built from the latest mainline kernel and busybox userspace.
• Kernel: Linux 7.0.12-nova-os
• Arch: aarch64 (ARM64)
• Shell: busybox ash
• Init: custom (minimal)
• Target: Raspberry Pi 5
Type 'help' for available commands.
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
echo ""
echo " ╔══════════════════════════════════════════╗"
echo " ║ N O V A O S ║"
echo " ║ kernel $(uname -r) ║"
echo " ║ "Burn bright, run light." ║"
echo " ║ systemd $(systemctl --version | head -1 | awk '{print $2}') ║"
echo " ╚══════════════════════════════════════════╝"
echo ""
-7
View File
@@ -1,7 +0,0 @@
NAME="Nova OS"
VERSION="1.0 (Starlight)"
ID=nova-os
VERSION_ID=1.0
PRETTY_NAME="Nova OS 1.0 Starlight"
HOME_URL="https://github.com/blazblue547-afk/nova-os"
KERNEL="Linux 7.0.12-nova-os"
+1
View File
@@ -0,0 +1 @@
../usr/lib/os-release
+31 -12
View File
@@ -1,15 +1,34 @@
#
# Nova OS shell profile
#
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
# Set prompt
export PS1='\e[1;36mnova-os\e[0m:\e[1;35m\w\e[0m# '
if [ "$(id -u)" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
# Aliases
alias ls='ls --color=auto'
alias ll='ls -la'
alias nova='cat /etc/motd'
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "$(id -u)" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# Welcome
cat /etc/issue
echo ""
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
+1
View File
@@ -0,0 +1 @@
/run/systemd/resolve/stub-resolv.conf
+47
View File
@@ -0,0 +1,47 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the journald.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/journald.conf' to display the full config.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes
#Audit=no
+49
View File
@@ -0,0 +1,49 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#StopIdleSessionSec=infinity
@@ -0,0 +1,5 @@
[Match]
Name=eth0
[Network]
DHCP=yes
+28
View File
@@ -0,0 +1,28 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the networkd.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See networkd.conf(5) for details.
[Network]
#SpeedMeter=no
#SpeedMeterIntervalSec=10sec
#ManageForeignRoutingPolicyRules=yes
#ManageForeignRoutes=yes
#RouteTable=
[DHCPv4]
#DUIDType=vendor
#DUIDRawData=
[DHCPv6]
#DUIDType=vendor
#DUIDRawData=
+17
View File
@@ -0,0 +1,17 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the pstore.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See pstore.conf(5) for details.
[PStore]
#Storage=external
#Unlink=yes
+34
View File
@@ -0,0 +1,34 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.
[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google: 8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
#DNS=
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=yes
#LLMNR=yes
#Cache=yes
#CacheFromLocalhost=no
#DNSStubListener=yes
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no
+27
View File
@@ -0,0 +1,27 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the sleep.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See systemd-sleep.conf(5) for details.
[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=
#SuspendEstimationSec=60min
+77
View File
@@ -0,0 +1,77 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the system.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/system.conf' to display the full config.
#
# See systemd-system.conf(5) for details.
[Manager]
#LogLevel=info
#LogTarget=journal-or-kmsg
#LogColor=yes
#LogLocation=no
#LogTime=no
#DumpCore=yes
#ShowStatus=yes
#CrashChangeVT=no
#CrashShell=no
#CrashReboot=no
#CtrlAltDelBurstAction=reboot-force
#CPUAffinity=
#NUMAPolicy=default
#NUMAMask=
#RuntimeWatchdogSec=off
#RuntimeWatchdogPreSec=off
#RuntimeWatchdogPreGovernor=
#RebootWatchdogSec=10min
#KExecWatchdogSec=off
#WatchdogDevice=
#CapabilityBoundingSet=
#NoNewPrivileges=no
#SystemCallArchitectures=
#TimerSlackNSec=
#StatusUnitFormat=combined
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=journal
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultTimeoutAbortSec=
#DefaultDeviceTimeoutSec=90s
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultCPUAccounting=yes
#DefaultIOAccounting=no
#DefaultIPAccounting=no
#DefaultMemoryAccounting=yes
#DefaultTasksAccounting=yes
#DefaultTasksMax=15%
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=1024:524288
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=8M
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=
#DefaultOOMPolicy=stop
#DefaultSmackProcessLabel=
@@ -0,0 +1 @@
/lib/systemd/system/systemd-networkd.service
@@ -0,0 +1 @@
/lib/systemd/system/systemd-resolved.service
@@ -0,0 +1 @@
/lib/systemd/system/networking.service
@@ -0,0 +1 @@
/lib/systemd/system/systemd-networkd-wait-online.service
@@ -0,0 +1,13 @@
[Unit]
Description=Nova OS Boot Splash
After=systemd-remount-fs.service
Before=getty.target
[Service]
Type=oneshot
ExecStart=/etc/nova-splash.sh
StandardOutput=journal+console
TTYPath=/dev/tty1
[Install]
WantedBy=multi-user.target
@@ -0,0 +1 @@
/lib/systemd/system/systemd-networkd.socket
@@ -0,0 +1 @@
/lib/systemd/system/systemd-network-generator.service
@@ -0,0 +1 @@
/lib/systemd/system/systemd-pstore.service
@@ -0,0 +1 @@
/lib/systemd/system/systemd-resolved.service
@@ -0,0 +1 @@
/lib/systemd/system/apt-daily-upgrade.timer
@@ -0,0 +1 @@
/lib/systemd/system/apt-daily.timer
@@ -0,0 +1 @@
/lib/systemd/system/dpkg-db-backup.timer
@@ -0,0 +1 @@
/lib/systemd/system/e2scrub_all.timer
@@ -0,0 +1 @@
/lib/systemd/system/fstrim.timer
+50
View File
@@ -0,0 +1,50 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the user.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See systemd-user.conf(5) for details.
[Manager]
#LogLevel=info
#LogTarget=auto
#LogColor=yes
#LogLocation=no
#LogTime=no
#SystemCallArchitectures=
#TimerSlackNSec=
#StatusUnitFormat=combined
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=inherit
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultTimeoutAbortSec=
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=
#DefaultSmackProcessLabel=
-48
View File
@@ -1,48 +0,0 @@
#!/bin/sh
#
# Nova OS - init
# Linux 7.0.12-nova-os — "Burn bright, run light."
#
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
echo ""
echo " ╔══════════════════════════════════════╗"
echo " ║ N O V A O S ║"
echo " ║ kernel 7.0.12-nova-os ║"
echo " ║ \"Burn bright, run light.\" ║"
echo " ╚══════════════════════════════════════╝"
echo ""
# Mount essential filesystems
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs none /dev
mount -t tmpfs none /tmp
mount -t tmpfs none /run
# Populate /dev
mdev -s
# Mount root writable
mount -o remount,rw /
# Set hostname
hostname nova-os
# Bring up loopback
ifconfig lo 127.0.0.1 up
# Start logging
syslogd
echo ":: Nova OS ready."
echo ""
# Run the configured inittab if it exists
if [ -f /etc/inittab ]; then
exec init
fi
# Fallback: spawn a shell
exec cttyhack sh