Public bug reported:

Postinstall script fails to update initramfs if running kernel is not installed 
in system, for example chroot environment.
relevant section of nvidia-current.postinst
-----------------
        CURRENT_KERNEL=$(uname -r)
        NEWEST_KERNEL=$(get_newest_kernel "$KERNELS")

        ALTERNATIVE=$(readlink /etc/alternatives/gl_conf)
        if [ "$ALTERNATIVE" = "/usr/lib/nvidia-current/ld.so.conf" ]; then
            # Update initramfs so that the blacklist ends up in the initramfs
            update-initramfs -u

            if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != 
${NEWEST_KERNEL} ]; then
                update-initramfs -u -k $CURRENT_KERNEL
            fi
        fi
----------------
$CURRENT_KERNEL ist not installed, so "update-initramfs -u -k $CURRENT_KERNEL" 
fails.

running chrooted Lucid in a Karmic system.

** Affects: nvidia-graphics-drivers (Ubuntu)
     Importance: Undecided
         Status: New

-- 
postinst fails if running kernel has no headers installed
https://bugs.launchpad.net/bugs/536744
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in ubuntu.

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to