From 0dbe4af75b1234d32056cbde3ff89c1be3df5e35 Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Mon, 20 Jul 2020 16:43:01 -0400 Subject: [PATCH] mender-convert-modify: Use sudo to copy DTBs. Changelog: Title Signed-off-by: Drew Moseley --- mender-convert-modify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mender-convert-modify b/mender-convert-modify index 3bd4c77..0c9fd2c 100755 --- a/mender-convert-modify +++ b/mender-convert-modify @@ -196,7 +196,7 @@ EOF # folder, then any subfolders in versioned order. for candidate in work/rootfs/boot/dtbs $(find work/rootfs/boot/dtbs/ -maxdepth 1 -type d | sort -V -r); do if [ $(find $candidate -maxdepth 1 -name '*.dtb' | wc -l) -gt 0 ]; then - run_and_log_cmd "cp -r $candidate work/boot/dtb" + run_and_log_cmd "sudo cp -r $candidate work/boot/dtb" break fi done