update-initramfs trigger should *not* unconditionally run flash-kernel

Bug #691074 reported by Dave Martin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
flash-kernel (Ubuntu)
Invalid
Low
Unassigned
initramfs-tools (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: initramfs-tools

Observed in initramfs-tools 0.98.1ubuntu6
Observed in flash-kernel 2.28ubuntu10
Platform: vexpress (armel)

flash-kernel should do nothing if /etc/flash-kernel.conf doesn't exist? (this may either be a regression, or a platform-specific problem)

initramfs-tools should not even attempt to update the bootloader's initrd image (and so probably shouldn't invoke flash-kernel at all) unless /etc/kernel-img.conf says so (with do_initrd = Yes)

Of course, in a "normal" installation, both configuration files will exist. But for test platforms, and in some other situations, we want to avoid gratuitous flash rewrites.

Tags: armel
Revision history for this message
maximilian attems (maks-debian) wrote :

You are mixing 2 things:

* /etc/kernel-img.conf is deprecated and sholdn't matter these days.

* flash-kernel is not invoked by update-initramfs if /etc/initramfs/post-update.d/ hook extists.

flash-kernel hook should take care to not run if /etc/flash-kernel.conf doesn't exist is a proper condtion.
I don't see an initramfs-tools bug here, thanks for your feedback.

Revision history for this message
maximilian attems (maks-debian) wrote :

as explained no initramfs-tools bug.

Changed in initramfs-tools (Ubuntu):
status: New → Fix Released
Revision history for this message
Dave Martin (dave-martin-arm) wrote :

@maximilian

Fair enough -- in that case this may just be an issue with flash-kernel itself or the way it's getting configured.

I guess in this case it's not a problem in initramfs-tools.

Revision history for this message
Tobin Davis (gruemaster) wrote :

Marking initramfs-tools as invalid. Fix Released is for when an actual fix has been made to the tool and released to the world. Thanks.

Changed in flash-kernel (Ubuntu):
importance: Undecided → Low
Changed in initramfs-tools (Ubuntu):
status: Fix Released → Invalid
Changed in flash-kernel (Ubuntu):
status: New → Triaged
Revision history for this message
Loïc Minier (lool) wrote :

Dave, flash-kernel.conf is only used on some boards, not all, so it's not a valid test.

You can disable running flash-kernel by setting FLASH_KERNEL_SKIP= to some value.

Revision history for this message
Tobin Davis (gruemaster) wrote :

Marked as invalid due to the above option available. No package changes required.

Changed in flash-kernel (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.