This commit is contained in:
teldra 2022-02-07 01:32:03 +01:00
parent df0928f2ff
commit 0f342d0be9

View File

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