Browse Source

mender-convert-modify: Use sudo to copy DTBs.

Changelog: Title
Signed-off-by: Drew Moseley <drew.moseley@northern.tech>
revert-252-rm-only-tag-2.2.x
Drew Moseley 5 years ago
parent
commit
0dbe4af75b
  1. 2
      mender-convert-modify

2
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

Loading…
Cancel
Save