the patch I proposed would be to force update initramfs:

diff --git a/debian/templates/nvidia-graphics-drivers.postinst.in 
b/debian/templates/nvidia-graphics-drivers.postinst.in
index 06242bb..e7933e3 100644
--- a/debian/templates/nvidia-graphics-drivers.postinst.in
+++ b/debian/templates/nvidia-graphics-drivers.postinst.in
@@ -208,15 +208,13 @@ case "$1" in
         NEWEST_KERNEL=$(get_newest_kernel "$KERNELS")
 
         ALTERNATIVE=$(readlink /etc/alternatives/#DEB_HOST_MULTIARCH#_gl_conf)
-        if [ "$ALTERNATIVE" = "#LDSOCONF#" ]; then
-            # Update initramfs so that the blacklist ends up in the initramfs
-            if [ -x /usr/sbin/update-initramfs ]; then            
-                /usr/sbin/update-initramfs -u
-
-                if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != 
${NEWEST_KERNEL} ]; then
-                    # This can fail when dealing with a chroot see LP: #556653
-                    /usr/sbin/update-initramfs -u -k $CURRENT_KERNEL
-                fi
+        # Update initramfs so that the blacklist ends up in the initramfs
+        if [ -x /usr/sbin/update-initramfs ]; then            
+            /usr/sbin/update-initramfs -u
+
+            if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != 
${NEWEST_KERNEL} ]; then
+                # This can fail when dealing with a chroot see LP: #556653
+                /usr/sbin/update-initramfs -u -k $CURRENT_KERNEL
             fi
         fi

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1717151

Title:
  driver installation might not build initramfs then cause dark screen
  after switching to nvidia

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1717151/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to