Comment 1 for bug 1717151

Revision history for this message
Alex Tu (alextu) wrote :

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