progress
This commit is contained in:
parent
7ab85a5e49
commit
acac2fbd9f
4
main.sh
4
main.sh
|
@ -92,7 +92,7 @@ do_partition() {
|
||||||
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart EFI fat32 $start $(( start + size ))
|
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart EFI fat32 $start $(( start + size ))
|
||||||
start=$(( start + size ))
|
start=$(( start + size ))
|
||||||
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart root $start -1s
|
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"
|
TARGET_PART="2"
|
||||||
else
|
else
|
||||||
parted -a optimal $TARGET_PHY_WWN -s -- mklabel msdos
|
parted -a optimal $TARGET_PHY_WWN -s -- mklabel msdos
|
||||||
|
@ -101,7 +101,7 @@ 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 ))
|
||||||
mkfs.btrfs $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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user