diff --git a/mender-convert-modify b/mender-convert-modify index 7fb2446..89e3b4c 100755 --- a/mender-convert-modify +++ b/mender-convert-modify @@ -94,7 +94,7 @@ run_and_log_cmd "wget -Nq ${MENDER_STORAGE_URL}/${MENDER_CLIENT_VERSION}/dist-pa cd work/mender-deb run_and_log_cmd "ar -xv ${deb_name}" -run_and_log_cmd "tar xJf data.tar.xz -C files" +run_and_log_cmd "sudo tar xJf data.tar.xz -C files" cd - > /dev/null 2>&1 run_and_log_cmd "sudo rsync --archive --keep-dirlinks --verbose work/mender-deb/files/ work/rootfs/" @@ -207,8 +207,8 @@ fi run_and_log_cmd "echo 'device_type=${device_type}' > work/device_type" run_and_log_cmd "sudo install -m 0444 work/device_type work/rootfs/data/mender/" -run_and_log_cmd "sudo echo 'artifact_name=${MENDER_ARTIFACT_NAME}' \ - > work/rootfs/etc/mender/artifact_info" +run_and_log_cmd "echo 'artifact_name=${MENDER_ARTIFACT_NAME}' \ + | sudo tee work/rootfs/etc/mender/artifact_info" log_info "Creating state scripts version file." case "${MENDER_CLIENT_VERSION}" in