]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Provision: desktop-basic: ensure qxl module is loaded by initramfs
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 22 Apr 2017 14:49:24 +0000 (11:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 22 Apr 2017 14:49:24 +0000 (11:49 -0300)
share/provision/desktop-basic

index 46c88fd33167eeda1cb20442f0fa3634644154f4..07579b3a529b046b8a963066dcd49ce92778fef1 100755 (executable)
@@ -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