Skip to content

Commit

Permalink
Merge pull request #2 from llhuii/master
Browse files Browse the repository at this point in the history
Fix nvidia-drivers-loaders service activation time
  • Loading branch information
back1860 authored Nov 21, 2018
2 parents db97cce + b47393f commit 73bf984
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nvidia-gpu-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ EOF
cat <<-EOF > /etc/systemd/system/nvidia-drivers-loader.service
[Unit]
Description=auto loader of nvidia drivers
Before=local-fs.target
Before=sysinit.target
After=systemd-modules-load.service
DefaultDependencies=no
Conflicts=shutdown.target
Expand Down Expand Up @@ -560,6 +561,9 @@ fix()
chmod +x "$f"
fi
done

echo "fix nvidia-drivers-loader service"
sed -i 's/Before=local-fs.*/Before=sysinit.target\nAfter=systemd-modules-load.service/' /etc/systemd/system/nvidia-drivers-loader.service
echo "Fix... DONE"
}

Expand Down

0 comments on commit 73bf984

Please sign in to comment.