build fails in chrooted system
Bug #556653 reported by
Luigi Capriotti
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fglrx-installer (Ubuntu) |
Fix Released
|
High
|
Alberto Milone | ||
nvidia-graphics-drivers (Ubuntu) |
Fix Released
|
High
|
Alberto Milone | ||
nvidia-graphics-drivers-173 (Ubuntu) |
Fix Released
|
High
|
Alberto Milone | ||
nvidia-graphics-drivers-96 (Ubuntu) |
Fix Released
|
High
|
Alberto Milone |
Bug Description
When installing nvidia-96 on a chrooted lucid system, update-initramfs is called with host kernel version instead of chroot kernel version. Current chroot kernel version is correctly identified, but an error in a variable name prevents the configuration to be successful:
if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then
fi
should read:
if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then
fi
Changed in nvidia-graphics-drivers (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Alberto Milone (albertomilone) |
Changed in nvidia-graphics-drivers-96 (Ubuntu): | |
status: | New → Triaged |
Changed in nvidia-graphics-drivers-173 (Ubuntu): | |
status: | New → Triaged |
assignee: | nobody → Alberto Milone (albertomilone) |
Changed in nvidia-graphics-drivers-96 (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
Changed in nvidia-graphics-drivers-173 (Ubuntu): | |
importance: | Undecided → High |
Changed in nvidia-graphics-drivers-96 (Ubuntu): | |
importance: | Undecided → High |
tags: | added: lucid |
To post a comment you must log in.
I know that I asked you to report this problem but now that I recall the use case for the code I don't think it's a bug.
If you don't pass the -k parameter to update-initramfs, it uses the latest kernel by default.
In the following code, the initramfs is always called for the latest kernel, however if you're installing the driver after booting from an older kernel (which therefore is your current kernel), the initramfs for this kernel will be updated too.
if [ "$ALTERNATIVE" = "/usr/lib/
# Update initramfs so that the blacklist ends up in the initramfs
if [ -n "$NEWEST_KERNEL" ] && [ ${CURRENT_KERNEL} != ${NEWEST_KERNEL} ]; then
update- initramfs -u -k $CURRENT_KERNEL
fi
fi