progress
This commit is contained in:
parent
377b46256d
commit
e6d9caf4e4
2
main.sh
2
main.sh
|
@ -134,7 +134,7 @@ do_partition() {
|
||||||
#echo -n $pass | sudo cryptsetup luksOpen /dev/sdc1 sdc1 -d -
|
#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 -
|
echo -n $pass | cryptsetup luksOpen "${TARGET_PHY_ID}-part${TARGET_PART}" "luks_${TARGETNAME_UNDERSCORE}" -d -
|
||||||
fi
|
fi
|
||||||
vgcreate "vg_${TARGETNAME_UNDERSCORE}" "${T}"
|
vgcreate --force "vg_${TARGETNAME_UNDERSCORE}" "${T}"
|
||||||
lvcreate --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}"
|
lvcreate --name swap -L "${SWAPSIZE}G" "vg_${TARGETNAME_UNDERSCORE}"
|
||||||
lvcreate --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}"
|
lvcreate --name root -l 100%FREE "vg_${TARGETNAME_UNDERSCORE}"
|
||||||
mkswap -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap"
|
mkswap -f "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-swap"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user