Last active
January 15, 2016 14:56
-
-
Save oprypin/3e20e83268395a1bce2f to your computer and use it in GitHub Desktop.
Choose an appropriate video driver for Arch Linux that can be booted directly or from a virtual machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Choose an appropriate driver | |
Before=display-manager.service | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c 'systemd-detect-virt && d=mesa || d=nvidia; d="$d-libgl lib32-$d-libgl"; pacman -Q $d || yes | pacman -S --needed $d' | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment