kernel postinst.d/postrm.d hooks execute alphabetically

Bug #669151 reported by Matt Sealey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bootloader Manager
New
Undecided
Unassigned
Genesi EfikaMX Support Project
Confirmed
Wishlist
Matt Sealey
flash-kernel
Invalid
Undecided
Unassigned
initramfs-tools
Invalid
Undecided
Unassigned
syslinux
Invalid
Undecided
Unassigned
flash-kernel (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On shipped Maverick systems /etc/kernel/postinst.d and /etc/kernel/postrm.d do not have flash-kernel support by default.

Adding a simple script

#!/bin/sh
flash-kernel $1

As "/etc/kernel/postinst.d/flash-kernel" enables this support but the postinst and postrm scripts are run alphabetically from the directories.

The current hack solution is to name the script "xflash-kernel"

Like udev scripts it would be better if they were numbered so they executed in the correct order.

Revision history for this message
Matt Sealey (mwsealey) wrote :

To clarify, the bug affects anything that is going to put a hook into any /etc/kernel/*.d directory.

Scripts should be numbered with an explicit order of operation so that for instance initramfs-tools is run before flash-kernel, or grub, without naming scripts zz-update-grub.

summary: - initramfs-tools and kernel hooks do not support flash-kernel
+ kernel postinst.d/postrm.d hooks execute alphabetically
Changed in efikamx:
assignee: nobody → Matt Sealey (mwsealey)
importance: Undecided → High
status: New → Incomplete
status: Incomplete → Confirmed
importance: High → Wishlist
Loïc Minier (lool)
Changed in flash-kernel:
status: New → Invalid
Changed in syslinux:
status: New → Invalid
Changed in initramfs-tools:
status: New → Invalid
Revision history for this message
Oliver Grawert (ogra) wrote :

flash-kernel ships a zz-flash-kernel postinst hook for the kernel package since a while by default which works around this bug ... since maverick is EOL for quite a while now, the bug is being worked around with the default install and since i belive this is handled according to the request in teh upcoming flash-kernel that we will witch to in 12.10, i'm closing the ubuntu task now.

Changed in flash-kernel (Ubuntu):
status: New → Fix Released
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.