#597580 initramfs-tools hook functions copy_exec should allow use of PATH

#597580#5
Date:
2010-09-20 23:25:30 UTC
From:
To:
It would be nice if the "copy_exec" function in the initramfs-tools
hook script helper functions searched for source executables from the
PATH (and failed if they weren't found!)

That would make it easier to write hook scripts which (a) don't depend
on specific binary locations and (b) don't appear to succeed while
generating broken initramfs's.

If this seems like a good idea to you I'll implement it and send a
patch.

Thanks,
Ian.

#597580#10
Date:
2017-09-26 21:10:34 UTC
From:
To:
Suggested patch is attached.

This would help to fix other bugs such as 852569.