progress
This commit is contained in:
parent
d02b2e627a
commit
1dc09f1100
6
main.sh
6
main.sh
|
@ -136,9 +136,9 @@ do_partition() {
|
|||
#echo -n $pass | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
||||
echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d -
|
||||
fi
|
||||
vgcreate --force "vg_${TARGETNAME_UNDERSCORE}" "${T}"
|
||||
lvcreate --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}"
|
||||
lvcreate --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}"
|
||||
vgcreate -y --force "vg_${TARGETNAME_UNDERSCORE}" "${T}"
|
||||
lvcreate -y --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}"
|
||||
lvcreate -y --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}"
|
||||
mkswap -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap"
|
||||
mkfs.btrfs -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root"
|
||||
mount "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" "${target}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user