This commit is contained in:
teldra 2022-02-07 01:21:25 +01:00
parent 7ab85a5e49
commit acac2fbd9f

View File

@ -92,7 +92,7 @@ do_partition() {
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart EFI fat32 $start $(( start + size ))
start=$(( start + size ))
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart root $start -1s
mkfs.vfat -F32 $TARGET_PHY_WWN-part1
mkfs.vfat -F32 ${TARGET_PHY_WWN}-part1
TARGET_PART="2"
else
parted -a optimal $TARGET_PHY_WWN -s -- mklabel msdos
@ -101,7 +101,7 @@ do_partition() {
size=2048
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart primary ext4 $start $(( start + size ))
start=$(( start + size ))
mkfs.btrfs $TARGET_PHY_WWN-part1
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