aboutsummaryrefslogtreecommitdiff
path: root/share/provision/desktop-basic
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-22 11:49:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-22 11:49:24 -0300
commitf8e4dba78fb522cf908d33a1638e31b99bc5bbeb (patch)
treeb1fb9721d13534648f12b3faeb13483d39871bbd /share/provision/desktop-basic
parent3e8eef830ee6d33503d203dae87c2bac4097fafa (diff)
downloadkvmx-f8e4dba78fb522cf908d33a1638e31b99bc5bbeb.tar.gz
kvmx-f8e4dba78fb522cf908d33a1638e31b99bc5bbeb.tar.bz2
Provision: desktop-basic: ensure qxl module is loaded by initramfs
Diffstat (limited to 'share/provision/desktop-basic')
-rwxr-xr-xshare/provision/desktop-basic7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/provision/desktop-basic b/share/provision/desktop-basic
index 46c88fd..07579b3 100755
--- a/share/provision/desktop-basic
+++ b/share/provision/desktop-basic
@@ -52,6 +52,13 @@ $APT_INSTALL xpra lightdm firefox-esr chromium torbrowser-launcher
sudo cp $DIRNAME/files/desktop-basic/etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf
sudo cp $DIRNAME/files/desktop-basic/etc/default/keyboard /etc/default/keyboard
+# Load qlx module during initramfs phase otherwise the X server might start
+# before this module gets loaded, resulting in weird spice errors.
+if ! grep -q qxl /etc/initramfs-tools/modules; then
+ echo qxl | sudo tee -a /etc/initramfs-tools/modules > /dev/null
+ sudo update-initramfs -u
+fi
+
# User configuration
mkdir -p $HOME/.custom