progress
This commit is contained in:
parent
e4d68402e5
commit
47cf364476
5
main.sh
5
main.sh
|
@ -109,14 +109,15 @@ do_partition() {
|
|||
fi
|
||||
|
||||
TARGETNAME=$(basename ${TARGET_PHY_WWN}-part${TARGET_PART})
|
||||
TARGETNAME_UNDERSCORE=${TARGETNAME//-/_}
|
||||
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 | cryptsetup luksOpen ${TARGET_PHY_WWN}-part${TARGET_PART} "luks-${TARGETNAME}" -d -
|
||||
vgcreate vg-${TARGETNAME} /dev/mapper/luks-${TARGETNAME}
|
||||
lvcreate --name swap -L ${SWAPSIZE}G vg-${TARGETNAME}
|
||||
lvcreate --name root -l 100%FREE vg-${TARGETNAME}
|
||||
mkswap /dev/mapper/vg-${TARGETNAME}-swap
|
||||
mkfs.btrfs /dev/mapper/vg-${TARGETNAME}-root
|
||||
mkswap -f /dev/mapper/vg-${TARGETNAME}-swap
|
||||
mkfs.btrfs -f /dev/mapper/vg-${TARGETNAME}-root
|
||||
mount /dev/mapper/vg-${TARGETNAME}-root $target
|
||||
btrfs subvol create ${target}/root
|
||||
btrfs subvol create ${target}/home
|
||||
|
|
Loading…
Reference in New Issue
Block a user