[PATCH 09/20] Add os-release file

Demi Marie Obenour
2025-09-04T23:48:08Z

systemd-sysupdate expects one to exist and it's a good idea to have one
anyway. Some third-party dependencies might check for it.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
---
host/rootfs/Makefile | 1 +
host/rootfs/etc/os-release | 12 ++++++++++++
host/rootfs/etc/os-release.license | 2 ++
img/app/Makefile | 1 +
img/app/etc/os-release | 12 ++++++++++++
img/app/etc/os-release.license | 2 ++
vm/sys/net/Makefile | 1 +
vm/sys/net/etc/os-release | 12 ++++++++++++
vm/sys/net/etc/os-release.license | 2 ++
9 files changed, 45 insertions(+)

diff --git a/host/rootfs/Makefile b/host/rootfs/Makefile
index 6cdbac201257faedb70344bcfd5cf9d4fd25b507..4faaccab8cb01d57ef7c48c01eb6fb1326cea4a0 100644
--- a/host/rootfs/Makefile
+++ b/host/rootfs/Makefile
@@ -17,6 +17,7 @@ FILES = \
etc/mdev/listen \
etc/mdev/net/add \
etc/mdev/wait \
+ etc/os-release \
etc/parse-devname \
etc/passwd \
etc/s6-linux-init/env/WAYLAND_DISPLAY \
diff --git a/host/rootfs/etc/os-release b/host/rootfs/etc/os-release
new file mode 100644
index 0000000000000000000000000000000000000000..536183411aa94b727f045c4623c29d66503738be
--- /dev/null
+++ b/host/rootfs/etc/os-release
@@ -0,0 +1,12 @@
+NAME="Spectrum OS"
+ID="spectrum"
+PRETTY_NAME="Spectrum OS 0.0.0-alpha0"
+VERSION="0.0.0-alpha0"
+VERSION_ID="0"
+IMAGE_ID="Spectrum-OS-Host"
+IMAGE_VERSION="0"
+RELEASE_TYPE="development"
+HOME_URL="https://www.spectrum-os.org/"
+VENDOR_URL="https://www.spectrum-os.org/"
+ANSI_COLOR="1;34"
+DEFAULT_HOSTNAME="spectrum-host"
diff --git a/host/rootfs/etc/os-release.license b/host/rootfs/etc/os-release.license
new file mode 100644
index 0000000000000000000000000000000000000000..c4a0586a407fe14c3e0855749a7524ac3871dda4
--- /dev/null
+++ b/host/rootfs/etc/os-release.license
@@ -0,0 +1,2 @@
+SPDX-License-Identifier: CC0-1.0
+SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
diff --git a/img/app/Makefile b/img/app/Makefile
index 062082e35ba352a8f0520b28379690f5a2ba2ed3..d3c206d70eedc2b423944ecff5f7c723ba719e0d 100644
--- a/img/app/Makefile
+++ b/img/app/Makefile
@@ -39,6 +39,7 @@ VM_FILES = \
etc/mdev/listen \
etc/mdev/virtiofs \
etc/mdev/wait \
+ etc/os-release \
etc/passwd \
etc/pipewire/pipewire.conf \
etc/resolv.conf \
diff --git a/img/app/etc/os-release b/img/app/etc/os-release
new file mode 100644
index 0000000000000000000000000000000000000000..73064cea96d66dd6d31b6b81c86b9ce2166efb88
--- /dev/null
+++ b/img/app/etc/os-release
@@ -0,0 +1,12 @@
+NAME="Spectrum OS"
+ID="spectrum"
+PRETTY_NAME="Spectrum OS 0.0.0-alpha0"
+VERSION="0.0.0-alpha0"
+VERSION_ID="0"
+IMAGE_ID="Spectrum-OS-VM-App"
+IMAGE_VERSION="0"
+RELEASE_TYPE="development"
+HOME_URL="https://www.spectrum-os.org/"
+VENDOR_URL="https://www.spectrum-os.org/"
+ANSI_COLOR="1;34"
+DEFAULT_HOSTNAME="spectrum-AppVM"
diff --git a/img/app/etc/os-release.license b/img/app/etc/os-release.license
new file mode 100644
index 0000000000000000000000000000000000000000..2f3a0c434ba93329fb8931eb69b33ca490af9126
--- /dev/null
+++ b/img/app/etc/os-release.license
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: CC0-1.0
+# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
diff --git a/vm/sys/net/Makefile b/vm/sys/net/Makefile
index a8ad03862165a69f3f7dd3e49f668cfa887d817f..a5ba5bbe219c3a37ba887a360cea61b3dc8eedce 100644
--- a/vm/sys/net/Makefile
+++ b/vm/sys/net/Makefile
@@ -35,6 +35,7 @@ VM_FILES = \
etc/mdev.conf \
etc/mdev/iface \
etc/nftables.conf \
+ etc/os-release \
etc/passwd \
etc/s6-linux-init/run-image/service/getty-hvc0/run \
etc/s6-linux-init/scripts/rc.init \
diff --git a/vm/sys/net/etc/os-release b/vm/sys/net/etc/os-release
new file mode 100644
index 0000000000000000000000000000000000000000..536183411aa94b727f045c4623c29d66503738be
--- /dev/null
+++ b/vm/sys/net/etc/os-release
@@ -0,0 +1,12 @@
+NAME="Spectrum OS"
+ID="spectrum"
+PRETTY_NAME="Spectrum OS 0.0.0-alpha0"
+VERSION="0.0.0-alpha0"
+VERSION_ID="0"
+IMAGE_ID="Spectrum-OS-Host"
+IMAGE_VERSION="0"
+RELEASE_TYPE="development"
+HOME_URL="https://www.spectrum-os.org/"
+VENDOR_URL="https://www.spectrum-os.org/"
+ANSI_COLOR="1;34"
+DEFAULT_HOSTNAME="spectrum-host"
diff --git a/vm/sys/net/etc/os-release.license b/vm/sys/net/etc/os-release.license
new file mode 100644
index 0000000000000000000000000000000000000000..2f3a0c434ba93329fb8931eb69b33ca490af9126
--- /dev/null
+++ b/vm/sys/net/etc/os-release.license
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: CC0-1.0
+# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>

--
2.51.0