From 6fa51f73d8c4e9a4c58c79d2a4dac6f45bbce3d5 Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:29:50 +0200 Subject: [PATCH] enable nvidia-persistenced Co-authored-by: derpsteb --- .../usr/lib/systemd/system-preset/20-constellation-base.preset | 1 + image/system/mkosi.postinst | 3 +++ 2 files changed, 4 insertions(+) diff --git a/image/sysroot-tree/usr/lib/systemd/system-preset/20-constellation-base.preset b/image/sysroot-tree/usr/lib/systemd/system-preset/20-constellation-base.preset index b213385af..ef65f6396 100644 --- a/image/sysroot-tree/usr/lib/systemd/system-preset/20-constellation-base.preset +++ b/image/sysroot-tree/usr/lib/systemd/system-preset/20-constellation-base.preset @@ -5,4 +5,5 @@ enable configure-constel-csp.service enable dbus.service enable dbus-broker.service enable dbus-daemon.service +enable nvidia-persistenced.service disable auditd.service diff --git a/image/system/mkosi.postinst b/image/system/mkosi.postinst index 75ae9b68b..508725058 100755 --- a/image/system/mkosi.postinst +++ b/image/system/mkosi.postinst @@ -20,6 +20,9 @@ echo "IMAGE_VERSION=\"${IMAGE_VERSION}\"" >> "${BUILDROOT}/etc/os-release" # enable debugd ln -s /usr/lib/systemd/system/debugd.service "${BUILDROOT}/etc/systemd/system/multi-user.target.wants/debugd.service" +# enable nvidia-persistenced +ln -s /usr/lib/systemd/system/nvidia-persistenced.service "${BUILDROOT}/etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service" + # ensure google_nvme_id is executable chmod o+x "${BUILDROOT}/usr/lib/udev/google_nvme_id" chmod g+x "${BUILDROOT}/usr/lib/udev/google_nvme_id"