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
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 templates/ nvidia- graphics- drivers. postinst. in templates/ nvidia- graphics- drivers. postinst. in
NEWEST_ KERNEL= $(get_newest_ kernel "$KERNELS")
index 06242bb..e7933e3 100644
--- a/debian/
+++ b/debian/
@@ -208,15 +208,13 @@ case "$1" in
- if [ "$ALTERNATIVE" = "#LDSOCONF#" ]; then
- # Update initramfs so that the blacklist ends up in the initramfs
- if [ -x /usr/sbin/
- /usr/sbin/
-
- if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then
- # This can fail when dealing with a chroot see LP: #556653
- /usr/sbin/
- fi
+ # Update initramfs so that the blacklist ends up in the initramfs
+ if [ -x /usr/sbin/
+ /usr/sbin/
+
+ if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then
+ # This can fail when dealing with a chroot see LP: #556653
+ /usr/sbin/
fi
fi