If the target path does not exist, the files are not copied.
To avoid that, create the target path in advance to copying the files.
Patch copied from ptxdist, see [1].

[1]: 
https://lore.ptxdist.org/ptxdist/[email protected]/

Signed-off-by: Lars Schmidt <[email protected]>
---

Added a reference to the ptxdist patch

 scripts/lib/ptxd_make_world_inject.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/ptxd_make_world_inject.sh 
b/scripts/lib/ptxd_make_world_inject.sh
index e8e94fb..a31184d 100644
--- a/scripts/lib/ptxd_make_world_inject.sh
+++ b/scripts/lib/ptxd_make_world_inject.sh
@@ -24,6 +24,7 @@ ptxd_make_inject() {
 
     echo -e "\nInject file $(ptxd_print_path ${source}) into" \
         "$(ptxd_print_path ${target})..."
+    mkdir -p "$(dirname "${target}")"
     cp ${source} ${target}
 }
 export -f ptxd_make_inject
-- 
2.39.5


Reply via email to