progress
This commit is contained in:
parent
f6f056b015
commit
ed4317a0f2
4
main.sh
4
main.sh
|
@ -90,7 +90,7 @@ do_partition() {
|
|||
parted -a optimal $TARGET_PHY_WWN -s -- mklabel gpt
|
||||
size=500
|
||||
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart EFI fat32 $start $(( start + size ))
|
||||
start=$(( start + size + 1 ))
|
||||
start=$(( start + size ))
|
||||
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart root $start -1s
|
||||
mkfs.vfat -F32 $TARGET_PHY_WWN-part1
|
||||
TARGET_PART="2"
|
||||
|
@ -101,7 +101,7 @@ do_partition() {
|
|||
if [ "$ENCRYPTION_STYLE" == "b" ] || [ "$ENCRYPTION_STYLE" == "e" ]; then
|
||||
size=2048
|
||||
parted -a optimal $TARGET_PHY_WWN unit mib -s -- mkpart primary ext4 $start $(( start + size ))
|
||||
start=$(( start + size + 1 ))
|
||||
start=$(( start + size ))
|
||||
mkfs.btrfs $TARGET_PHY_WWN-part1
|
||||
TARGET_PART="2"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user