update-initramfs hook copy_exec won't overwrite

Bug #582646 reported by Carey Underwood on 2010-05-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)

Bug Description

/usr/share/initramfs-tools/hook-functions bails out if copy_exec is called twice with the same target path.

What I want to do is:

copy_exec /usr/bin/btrfsctl /sbin
copy_exec /usr/local/bin/btrfsctl /sbin

And have the second one win. This way I can eventually use btrfs-tools once it's up to date (and no longer a moving target upstream), while still using the current version compiled from git on a very frequent basis.

The current behavior will silently break the boot when one or the other ceases to exist at best, and end up including a potentially broken utility in the worst case.

Carey Underwood (cwillu) wrote :

Issue exists in karmic and lucid; replacing the if statement with a unconditional "ln -sf" gets useful behaviour.

affects: ubuntu → initramfs-tools (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers