progress
This commit is contained in:
parent
0f342d0be9
commit
17df691a7f
9
main.sh
9
main.sh
|
@ -4,6 +4,11 @@ main="/tmp/vinstall"
|
||||||
target="${main}/target"
|
target="${main}/target"
|
||||||
pass="oem"
|
pass="oem"
|
||||||
|
|
||||||
|
if [ $DEBUG ]; then
|
||||||
|
umount ${target}/boot/efi ${target}/boot ${target}
|
||||||
|
vgchange -an
|
||||||
|
cryptsetup close /dev/mapper/luks
|
||||||
|
|
||||||
mkdir -p $target
|
mkdir -p $target
|
||||||
|
|
||||||
. functions
|
. functions
|
||||||
|
@ -114,8 +119,8 @@ do_partition() {
|
||||||
TARGETNAME_UNDERSCORE=${TARGETNAME//-/_}
|
TARGETNAME_UNDERSCORE=${TARGETNAME//-/_}
|
||||||
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 -
|
||||||
echo -n $pass | cryptsetup luksOpen ${TARGET_PHY_WWN}-part${TARGET_PART} "luks-${TARGETNAME_UNDERSCORE}" -d -
|
echo -n $pass | cryptsetup luksOpen ${TARGET_PHY_WWN}-part${TARGET_PART} "luks_${TARGETNAME_UNDERSCORE}" -d -
|
||||||
vgcreate vg_${TARGETNAME_UNDERSCORE} /dev/mapper/luks-${TARGETNAME_UNDERSCORE}
|
vgcreate vg_${TARGETNAME_UNDERSCORE} /dev/mapper/luks_${TARGETNAME_UNDERSCORE}
|
||||||
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