From e7b0899c504bb4a7f6defc8b968add217348837d Mon Sep 17 00:00:00 2001 From: Harald Sitter Date: Sun, 25 Jan 2026 19:48:20 +0100 Subject: [PATCH] run etc-factory as part of the initrd --- mkosi.extra/usr/lib/initcpio/install/systemd-extension | 4 +++- mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mkosi.extra/usr/lib/initcpio/install/systemd-extension b/mkosi.extra/usr/lib/initcpio/install/systemd-extension index 1aae10e..5b47b49 100644 --- a/mkosi.extra/usr/lib/initcpio/install/systemd-extension +++ b/mkosi.extra/usr/lib/initcpio/install/systemd-extension @@ -10,11 +10,13 @@ build() { /usr/lib/systemd/system-generators/kde-linux-live-generator \ /usr/lib/systemd/system-generators/kde-linux-mount-generator \ /usr/lib/systemd/systemd-bootchart \ + /usr/lib/etc-factory \ /usr/bin/btrfs map add_systemd_unit \ systemd-volatile-root.service \ - systemd-bootchart.service + systemd-bootchart.service \ + etc-factory.service # Make double sure the dissection rule is present. Without it booting doesn't work because we can't find a root. # Notably not getting added by the release initcpio combined with aur systemd-git at the time of writing. diff --git a/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset b/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset index dd80db0..7e3ba15 100644 --- a/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset +++ b/mkosi.extra/usr/lib/systemd/system-preset/50-kde-linux.preset @@ -40,7 +40,6 @@ enable switcheroo-control.service # KDE-Linux-specific stuff # also one of ours but not prefixed with kde-linux- so others can use it too -enable etc-factory.service enable kde-linux-bootloader-visibility.service enable kde-linux-btrfs.service enable kde-linux-configure-firefox.path