aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-24 22:49:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-24 22:49:19 -0300
commitd3e6a9790f077daf6503baf1d51ec9f8bc6d603a (patch)
treef05e50dfd22a1d5255f1bb0d2e27d9f9df1858e2
parent48264a119be031a7f880cdf14d9e3729cb51a60f (diff)
downloadkvmx-d3e6a9790f077daf6503baf1d51ec9f8bc6d603a.tar.gz
kvmx-d3e6a9790f077daf6503baf1d51ec9f8bc6d603a.tar.bz2
Provision: desktop-basic: check for /etc/modprobe.d/qxl-no-kms.conf
-rwxr-xr-xshare/provision/desktop-basic6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/provision/desktop-basic b/share/provision/desktop-basic
index d87aff0..21ee3a1 100755
--- a/share/provision/desktop-basic
+++ b/share/provision/desktop-basic
@@ -32,8 +32,10 @@ $DIRNAME/development $HOSTNAME $DOMAIN $MIRROR
# QLX
# See https://labs.riseup.net/code/issues/11518
# https://bugs.mageia.org/show_bug.cgi?id=14607
-echo 'options qxl modeset=0' | sudo tee /etc/modprobe.d/qxl-no-kms.conf
-sudo update-initramfs -v -u
+if [ ! -e "/etc/modprobe.d/qxl-no-kms.conf" ]; then
+ echo 'options qxl modeset=0' | sudo tee /etc/modprobe.d/qxl-no-kms.conf
+ sudo update-initramfs -v -u
+fi
# Ensure we are in the user home folder
cd