[patch] hook_functions: copy_exec should make directories in DESTDIR
Bug #24855 reported by
Karl Hegbloom
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
In the process of creating:
http://
I learned that 'copy_exec' does not make directories in the DESTDIR. I think it
should. See the attached patch.
Changed in initramfs-tools: | |
assignee: | adconrad → nobody |
To post a comment you must log in.
Created an attachment (id=4841)
Cause 'copy_exec' to create directories under DESTDIR
I'm having second thoughts... First I had it making ${DESTDIR} /$(dirname $1),
but now changed it to $(dirname $2). That won't work right if the $2 is not a
full path, right? It will strip the last element and thus will not always
create the right destination:
copy_exec /usr/local/ sbin/whatever usr/local/sbin
... won't do the right thing. Maybe we should not apply this after all.