progress
This commit is contained in:
parent
f8bd696ba5
commit
9f79f5043a
4
main.sh
4
main.sh
|
@ -112,7 +112,7 @@ do_partition() {
|
||||||
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart root ext4 "$start" 100%
|
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart root ext4 "$start" 100%
|
||||||
mkfs.vfat -I -F32 "${TARGET_PHY_ID}-part1"
|
mkfs.vfat -I -F32 "${TARGET_PHY_ID}-part1"
|
||||||
TARGET_PART="2"
|
TARGET_PART="2"
|
||||||
dd if=/dev/random of="${TARGET_PHY_ID}-part2" bs=512 count=4 > /dev/null 2>&1
|
dd if=/dev/random of="${TARGET_PHY_ID}-part2" bs=512 count=4
|
||||||
else
|
else
|
||||||
parted "${TARGET_PHY_ID}" -s -- mklabel msdos
|
parted "${TARGET_PHY_ID}" -s -- mklabel msdos
|
||||||
sleep 2
|
sleep 2
|
||||||
|
@ -125,7 +125,7 @@ do_partition() {
|
||||||
TARGET_PART="2"
|
TARGET_PART="2"
|
||||||
fi
|
fi
|
||||||
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "$start" -1s
|
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "$start" -1s
|
||||||
dd if=/dev/random of="${TARGET_PHY_ID}-part${TARGET_PART}" bs=512 count=4 > /dev/null 2>&1
|
dd if=/dev/random of="${TARGET_PHY_ID}-part${TARGET_PART}" bs=512 count=4
|
||||||
fi
|
fi
|
||||||
sleep 2
|
sleep 2
|
||||||
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
TARGETNAME="$(basename "${TARGET_PHY_ID}-part${TARGET_PART}")"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user