Initial ForgeOS project

This commit is contained in:
joe committed 2026-06-16 14:07:52 -04:00
commit 7db7cf1540
42 files changed
+3308

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
root:x:0:
tty:x:5:
disk:x:6:
utmp:x:43:
messagebus:x:81:
systemd-journal:x:190:
systemd-network:x:192:
systemd-resolve:x:193:
nobody:x:65534:
+1
View File
@@ -0,0 +1 @@
forgeos
+1
View File
@@ -0,0 +1 @@
ForgeOS \r (\m)
+3
View File
@@ -0,0 +1,3 @@
# ForgeOS ships a small BusyBox-compatible neofetch implementation.
# Keep this distro name available for tools that read neofetch-style config.
ascii_distro="forgeos"
+3
View File
@@ -0,0 +1,3 @@
NAME=ForgeOS
ID=forgeos
PRETTY_NAME="ForgeOS"
+5
View File
@@ -0,0 +1,5 @@
root::0:0:root:/root:/bin/sh
systemd-network:x:192:192:systemd Network Management:/:/bin/sh
systemd-resolve:x:193:193:systemd Resolver:/:/bin/sh
messagebus:x:81:81:System Message Bus:/:/bin/sh
nobody:x:65534:65534:nobody:/:/bin/sh
+9
View File
@@ -0,0 +1,9 @@
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
PS1='[forgeos \w]# '
export PS1
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
@@ -0,0 +1,6 @@
[Match]
Name=en* eth*
[Network]
DHCP=yes
IPv6AcceptRA=yes
@@ -0,0 +1,15 @@
disable *
enable forgeos-shell@tty1.service
enable forgeos-shell@ttyS0.service
enable forgeos-bootdiag.service
enable forgeos-console-banner.service
enable dbus.service
enable dbus.socket
enable systemd-networkd.service
enable systemd-networkd.socket
enable systemd-resolved.service
enable systemd-resolved-monitor.socket
enable systemd-resolved-varlink.socket
enable systemd-udevd.service
enable systemd-udevd-control.socket
enable systemd-udevd-kernel.socket
@@ -0,0 +1,12 @@
[Unit]
Description=Record ForgeOS boot diagnostics
Documentation=man:systemd.service(5)
After=local-fs.target systemd-udevd.service
ConditionPathExists=/sbin/forgeos-bootdiag
[Service]
Type=oneshot
ExecStart=/sbin/forgeos-bootdiag systemd
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,12 @@
[Unit]
Description=Print ForgeOS console banner
Documentation=man:systemd.service(5)
After=systemd-user-sessions.service
ConditionPathExists=/sbin/forgeos-console-banner
[Service]
Type=oneshot
ExecStart=/sbin/forgeos-console-banner
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,24 @@
[Unit]
Description=ForgeOS root shell on %I
Documentation=man:systemd.service(5)
After=systemd-user-sessions.service
Before=getty.target
IgnoreOnIsolate=yes
[Service]
Type=simple
ExecStart=-/bin/sh -l
Restart=always
RestartSec=0
StandardInput=tty
StandardOutput=tty
StandardError=tty
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
KillMode=process
IgnoreSIGPIPE=no
SendSIGHUP=yes
[Install]
WantedBy=getty.target