This commit is contained in:
teldra 2022-02-08 17:08:42 +01:00
parent 377b46256d
commit e6d9caf4e4

View File

@ -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"