This commit is contained in:
teldra 2022-02-07 01:30:08 +01:00
parent 0e23bcb09d
commit df0928f2ff
1 changed files with 3 additions and 1 deletions

View File

@ -102,7 +102,9 @@ do_partition() {
size=2048
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart primary ext4 $start $(( start + size ))
start=$(( start + size ))
mkfs.btrfs -f ${TARGET_PHY_WWN}-part1
sync
sleep 3
mkfs.btrfs -f "${TARGET_PHY_WWN}-part1"
TARGET_PART="2"
fi
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart primary ext4 $start -1s