progress
This commit is contained in:
parent
0caa406fa9
commit
01c1279110
4
main.sh
4
main.sh
|
@ -95,6 +95,7 @@ do_partition() {
|
|||
mkfs.vfat -F32 $TARGET_PHY_WWN-part1
|
||||
TARGET_PART="2"
|
||||
else
|
||||
set -x
|
||||
parted -a optimal $TARGET_PHY_WWN -s mklabel msdos
|
||||
TARGET_PART="1"
|
||||
if [ "$ENCRYPTION_STYLE" == "b" ] || [ "$ENCRYPTION_STYLE" == "e" ]; then
|
||||
|
@ -104,8 +105,9 @@ do_partition() {
|
|||
mkfs.btrfs $TARGET_PHY_WWN-part1
|
||||
TARGET_PART="2"
|
||||
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
|
||||
exit
|
||||
TARGETNAME=$(basename ${TARGET_PHY_WWN}-part${TARGET_PART})
|
||||
echo -n $pass | cryptsetup luksFormat ${TARGET_PHY_WWN}-part${TARGET_PART} -d -
|
||||
#echo -n $pass | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
||||
|
|
Loading…
Reference in New Issue
Block a user