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