Card write all supported machines: Show progress
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -20,11 +20,11 @@ RootCardWriteCallback() {
|
|||||||
# write
|
# write
|
||||||
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
||||||
if echo $DeployedFile | grep -q '.wic.gz'; then
|
if echo $DeployedFile | grep -q '.wic.gz'; then
|
||||||
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
|
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
|
||||||
elif echo $DeployedFile | grep -q '.wic.xz'; then
|
elif echo $DeployedFile | grep -q '.wic.xz'; then
|
||||||
EvalExAuto "tar -x -f $DeployedFile --to-stdout | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
|
EvalExAuto "tar -x -f $DeployedFile --to-stdout | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
|
||||||
else
|
else
|
||||||
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
||||||
fi
|
fi
|
||||||
# resize I
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ RootCardWriteCallback() {
|
|||||||
# write
|
# write
|
||||||
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
||||||
if echo $DeployedFile | grep -q '.wic.gz'; then
|
if echo $DeployedFile | grep -q '.wic.gz'; then
|
||||||
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
|
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
|
||||||
else
|
else
|
||||||
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
||||||
fi
|
fi
|
||||||
# resize I
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ RootCardWriteCallback() {
|
|||||||
# write
|
# write
|
||||||
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
||||||
if echo $DeployedFile | grep -q '.wic.bz2'; then
|
if echo $DeployedFile | grep -q '.wic.bz2'; then
|
||||||
EvalExAuto "bunzip2 -c $DeployedFile | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
|
EvalExAuto "bunzip2 -c $DeployedFile | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
|
||||||
else
|
else
|
||||||
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
|
||||||
fi
|
fi
|
||||||
# resize I
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
|
|||||||
Reference in New Issue
Block a user