mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
hook-functions: Print error message on copy_file failure
Print an error message when copy_file cannot find the source file. This will ease debugging in cases of failures like LP #1641230.
This commit is contained in:
parent
c7fc4a424f
commit
ea2977533e
@ -183,7 +183,10 @@ copy_file() {
|
||||
src="${2}"
|
||||
target="${3:-$2}"
|
||||
|
||||
[ -f "${src}" ] || return 2
|
||||
if [ ! -f "${src}" ]; then
|
||||
echo "mkinitramfs: copy_file: $type '$src' not found" >&2
|
||||
return 2
|
||||
fi
|
||||
|
||||
if [ -d "${DESTDIR}/${target}" ] || [ "${target%/}" != "$target" ]; then
|
||||
target="${target}/${src##*/}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user