feat: add USB mass storage and DRM/KMS service files to initfs

Phase B1+B2 from BOOT-PROCESS-AUDIT:
- 45_usbscsid.service: USB mass storage driver in initfs (requires xhcid)
- 30_redox-drm.service: DRM/KMS display driver in initfs (requires hwd+pcid-spawner)
Both condition-architecture-gated to x86/x86_64.
This commit is contained in:
2026-05-03 09:07:57 +01:00
parent 62b1fa408f
commit 09f0f59d06
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,22 @@
--- /dev/null
+++ b/init.initfs.d/45_usbscsid.service
@@ -0,0 +1,8 @@
+[unit]
+description = "USB Mass Storage Driver"
+requires_weak = ["40_drivers.target"]
+condition_architecture = ["x86", "x86_64"]
+
+[service]
+cmd = "usbscsid"
+type = "notify"
--- /dev/null
+++ b/init.initfs.d/30_redox-drm.service
@@ -0,0 +1,8 @@
+[unit]
+description = "DRM/KMS Display Driver"
+requires_weak = ["20_graphics.target", "40_hwd.service", "40_pcid-spawner-initfs.service"]
+condition_architecture = ["x86", "x86_64"]
+
+[service]
+cmd = "redox-drm"
+type = "notify"
+1
View File
@@ -0,0 +1 @@
../../../local/patches/base/P4-initfs-usb-drm-services.patch
+1
View File
@@ -13,6 +13,7 @@ patches = [
"P3-init-colored-output.patch",
"P4-logd-persistent-logging.patch",
"P4-acpi-shutdown-hardening.patch",
"P4-initfs-usb-drm-services.patch",
]
[build]