initramfs-tools only uses the dhcpcd binary from dhcpcd-base (not the dhcpcd service).
The relevant log lines from the output are:
+ copy_exec /usr/lib/dhcpcd/dhcpcd-run-hooks + local src target x nonoptlib ret + src=/usr/lib/dhcpcd/dhcpcd-run-hooks + target=/usr/lib/dhcpcd/dhcpcd-run-hooks + copy_file binary /usr/lib/dhcpcd/dhcpcd-run-hooks /usr/lib/dhcpcd/dhcpcd-run-hooks + local type src target link_target + type=binary + src=/usr/lib/dhcpcd/dhcpcd-run-hooks + target=/usr/lib/dhcpcd/dhcpcd-run-hooks + [ -f /usr/lib/dhcpcd/dhcpcd-run-hooks ] + return 2 + return 1 E: /usr/share/initramfs-tools/hooks/dhcpcd failed with return 1. update-initramfs: failed for /boot/initrd.img-6.5.0-1005-raspi with 1.
The test if /usr/lib/dhcpcd/dhcpcd-run-hooks exist fails. Is dhcpcd-base fully installed and /usr/lib/dhcpcd/dhcpcd-run-hooks present?
initramfs-tools only uses the dhcpcd binary from dhcpcd-base (not the dhcpcd service).
The relevant log lines from the output are:
+ copy_exec /usr/lib/ dhcpcd/ dhcpcd- run-hooks lib/dhcpcd/ dhcpcd- run-hooks /usr/lib/ dhcpcd/ dhcpcd- run-hooks dhcpcd/ dhcpcd- run-hooks /usr/lib/ dhcpcd/ dhcpcd- run-hooks lib/dhcpcd/ dhcpcd- run-hooks /usr/lib/ dhcpcd/ dhcpcd- run-hooks dhcpcd/ dhcpcd- run-hooks ] initramfs- tools/hooks/ dhcpcd failed with return 1. img-6.5. 0-1005- raspi with 1.
+ local src target x nonoptlib ret
+ src=/usr/
+ target=
+ copy_file binary /usr/lib/
+ local type src target link_target
+ type=binary
+ src=/usr/
+ target=
+ [ -f /usr/lib/
+ return 2
+ return 1
E: /usr/share/
update-initramfs: failed for /boot/initrd.
The test if /usr/lib/ dhcpcd/ dhcpcd- run-hooks exist fails. Is dhcpcd-base fully installed and /usr/lib/ dhcpcd/ dhcpcd- run-hooks present?