vmTools: use getOutput for MODULE_DIR (#434983)

This commit is contained in:
Will Fancher 2025-08-19 13:02:23 +00:00 committed by GitHub
commit 5f20293476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -212,7 +212,7 @@ rec {
fi
# Set up automatic kernel module loading.
export MODULE_DIR=${modulesClosure}/lib/modules/
export MODULE_DIR=${lib.getOutput "modules" kernel}/lib/modules/
${coreutils}/bin/cat <<EOF > /run/modprobe
#! ${bash}/bin/sh
export MODULE_DIR=$MODULE_DIR