desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #126190
[Bug 536744] Re: postinst fails if running kernel has no headers installed
That version is no more supported; please open a new bug report if the
actual archive found version also has the same issue.
** Changed in: nvidia-graphics-drivers (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-graphics-drivers in Ubuntu.
https://bugs.launchpad.net/bugs/536744
Title:
postinst fails if running kernel has no headers installed
Status in nvidia-graphics-drivers package in Ubuntu:
Invalid
Bug description:
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/536744/+subscriptions