FDS/OS 1.0

This commit is contained in:
2026-09-21 22:29:23 +08:00
commit 99bc3d15c5
430 changed files with 34876 additions and 0 deletions
View File
@@ -0,0 +1,4 @@
# Retain upstream package integrity while excluding unused runit service scripts.
noextract=/etc/sv/*
noextract=/etc/runit/*
syslog=false
+2
View File
@@ -0,0 +1,2 @@
# Native init prepares volatile mounts; the kernel or stage 0 supplies the root.
# No SYSTEM or DATA device is guessed here.
+31
View File
@@ -0,0 +1,31 @@
root:x:0:
bin:x:1:
sys:x:2:
kmem:x:3:
wheel:x:4:
tty:x:5:
tape:x:6:
daemon:x:7:
floppy:x:8:
disk:x:9:
lp:x:10:
dialout:x:11:
audio:x:12:
video:x:13:
utmp:x:14:
adm:x:15:
cdrom:x:16:
optical:x:17:
mail:x:18:
storage:x:19:
scanner:x:20:
network:x:21:
kvm:x:24:
input:x:25:
plugdev:x:26:
usbmon:x:27:
sgx:x:28:
nogroup:x:99:
users:x:100:
xbuilder:x:101:
fds:x:1000:
+31
View File
@@ -0,0 +1,31 @@
root:!::
fds:!::
bin:!::
sys:!::
kmem:!::
wheel:!::
tty:!::
tape:!::
daemon:!::
floppy:!::
disk:!::
lp:!::
dialout:!::
audio:!::
video:!::
utmp:!::
adm:!::
cdrom:!::
optical:!::
mail:!::
storage:!::
scanner:!::
network:!::
kvm:!::
input:!::
plugdev:!::
usbmon:!::
sgx:!::
nogroup:!::
users:!::
xbuilder:!::
+1
View File
@@ -0,0 +1 @@
fds
+3
View File
@@ -0,0 +1,3 @@
127.0.0.1 localhost
::1 localhost
127.0.1.1 fds
+1
View File
@@ -0,0 +1 @@
FDS/OS 0.1
+13
View File
@@ -0,0 +1,13 @@
{
"directories": {
"usr/bin": "0755", "usr/lib": "0755", "etc": "0755", "var": "0755",
"dev": "0755", "proc": "0755", "sys": "0755", "run": "0755",
"tmp": "1777", "root": "0700", "home": "0755", "home/fds": "0755", "mnt": "0755",
"media": "0755", "data": "0755", "var/tmp": "1777", "var/log": "0755", "var/empty": "0755"
},
"symlinks": {
"bin": "usr/bin", "sbin": "usr/bin", "usr/sbin": "bin",
"lib": "usr/lib", "lib64": "usr/lib", "usr/lib64": "lib",
"var/run": "../run", "var/lock": "../run/lock"
}
}
@@ -0,0 +1 @@
LANG=en_US.UTF-8
@@ -0,0 +1,9 @@
passwd: files
group: files
shadow: files
hosts: files dns
networks: files
protocols: files
services: files
ethers: files
rpc: files
+6
View File
@@ -0,0 +1,6 @@
NAME="FDS/OS"
PRETTY_NAME="FDS/OS 0.1 (M2 development rootfs)"
ID=fds
ID_LIKE=void
VERSION_ID=0.1
VERSION="0.1 (M2)"
+3
View File
@@ -0,0 +1,3 @@
root:x:0:0:root:/root:/bin/bash
nobody:x:99:99:Unprivileged User:/var/empty:/usr/bin/nologin
fds:x:1000:1000:FDS User:/home/fds:/bin/bash
+28
View File
@@ -0,0 +1,28 @@
# English UTF-8 by default. Interactive shells are userspace, never PID 1.
export PATH=/usr/bin:/bin
export LANG=en_US.UTF-8
export TZ=UTC
umask 022
for f in /etc/profile.d/*.sh; do
[ ! -r "$f" ] || . "$f"
done
unset f
case $- in
*i*)
PS1='FDS# '
if [ "${UID:-}" = 0 ] && [ "$(cat /usr/share/fds/image-profile)" = recovery ]; then
PS1='RECOVERY# '
/usr/bin/fds-boottrace mark console-ready || true
fi
if [ "${UID:-}" = 1000 ]; then
PS1='FDS> '
_fds_first_prompt() {
/usr/bin/fds-boottrace mark console-ready || true
printf '\nREADY.\n'
unset PROMPT_COMMAND
unset -f _fds_first_prompt
}
PROMPT_COMMAND=_fds_first_prompt
fi
;;
esac
+3
View File
@@ -0,0 +1,3 @@
root:!:20000:0:99999:7:::
nobody:!:20000:0:99999:7:::
fds:!:20000:0:99999:7:::
+30
View File
@@ -0,0 +1,30 @@
pkgname=fds-base-files
version=0.1.0
revision=1
archs="aarch64"
depends="xbps-triggers"
conflicts="base-files>=0 base-system>=0 runit>=0 runit-void>=0 systemd>=0 busybox>=0 musl>=0"
short_desc="FDS/OS filesystem layout, identity and base configuration"
maintainer="FDS/OS maintainers"
license="Public Domain"
homepage="https://github.com/void-linux/void-packages"
conf_files="/etc/hostname /etc/hosts /etc/passwd /etc/group /etc/shadow
/etc/gshadow /etc/profile /etc/nsswitch.conf /etc/fstab /etc/issue
/etc/locale.conf /etc/xbps.d/10-fds.conf"
# Upstream reserves root-level usr-merge links for its own base-files package.
# Ship an explicit layout manifest and apply it in the FDS image assembler.
do_install() {
vinstall "${FILESDIR}/layout.json" 644 usr/share/fds
for f in hostname hosts passwd group profile nsswitch.conf fstab issue locale.conf; do
vinstall "${FILESDIR}/${f}" 644 etc
done
for f in shadow gshadow; do
vinstall "${FILESDIR}/${f}" 600 etc
done
vinstall "${FILESDIR}/os-release" 644 usr/lib
ln -s ../usr/lib/os-release "${DESTDIR}/etc/os-release"
ln -s /run/fds/resolv.conf "${DESTDIR}/etc/resolv.conf"
ln -s /proc/self/mounts "${DESTDIR}/etc/mtab"
ln -s ../usr/share/zoneinfo/Etc/UTC "${DESTDIR}/etc/localtime"
vinstall "${FILESDIR}/10-fds.conf" 644 etc/xbps.d
}