dd, default to bs=4096

This commit is contained in:
Harald Hoyer 2018-10-19 10:46:57 +02:00
parent d6298aeda3
commit b3a3f8be40
3 changed files with 5 additions and 3 deletions

View file

@ -133,7 +133,7 @@ if [[ ${OUT#/dev/nvme} != $OUT ]]; then
OUT="${OUT}p" OUT="${OUT}p"
fi fi
dd if=${IN}2 of=${OUT}2 status=progress dd bs=4096 if=${IN}2 of=${OUT}2 status=progress
sfdisk --part-uuid ${OUT_DEV} 2 $(blkid -o value -s PARTUUID ${IN}2) sfdisk --part-uuid ${OUT_DEV} 2 $(blkid -o value -s PARTUUID ${IN}2)
if ! [[ $UPDATE ]]; then if ! [[ $UPDATE ]]; then

View file

@ -182,7 +182,7 @@ umount "$MY_TMPDIR"/boot
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# root1 # root1
dd if="$SOURCE"/root.img of=${DEV_PART}2 status=progress dd bs=4096 if="$SOURCE"/root.img of=${DEV_PART}2 status=progress
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# data # data

View file

@ -199,7 +199,9 @@ if [[ ${FILES["update.sh"]} ]] && [[ -e ./update.sh ]]; then
exit $? exit $?
fi fi
dd status=progress if=root.img of=${ROOT_DEV}-part${NEW_ROOT_PARTNO} dd bs=4096 conv=fsync status=progress \
if=root.img \
of=${ROOT_DEV}-part${NEW_ROOT_PARTNO}
# set the new partition uuids # set the new partition uuids
ROOT_UUID=${ROOT_HASH:32:8}-${ROOT_HASH:40:4}-${ROOT_HASH:44:4}-${ROOT_HASH:48:4}-${ROOT_HASH:52:12} ROOT_UUID=${ROOT_HASH:32:8}-${ROOT_HASH:40:4}-${ROOT_HASH:44:4}-${ROOT_HASH:48:4}-${ROOT_HASH:52:12}