Skip to content
Snippets Groups Projects
Verified Commit b21585ae authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Use dd for 'asis' reads

parent c47bc5ad
No related branches found
No related tags found
1 merge request!8Resolve "Use dd for 'asis' hash operations"
Pipeline #3873 passed
......@@ -567,7 +567,7 @@ fi
export GPG_TTY=$(tty)
queue=""
if [ "$mode" == "asis" ]; then
queue+="cat \"$in_file\""
queue+="dd if=\"$in_file\" bs=1M iflag=fullblock"
########################################
# Progress
......@@ -629,6 +629,7 @@ elif [ "$mode" == "backup" ]; then
this_stage=3
if ((this_stage + 1 == target_stage)); then
queue+=" | dd bs=1M iflag=fullblock of=\"$out_file\""
else
if $checksum; then
if $hex; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment