From 0286fe576b48b6e7c191f37fea364cde1e21a713 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 17 Dec 2019 14:01:08 +0100 Subject: Implemented system encryption in write_config.py and first_stage.sh. --- stages/first_stage.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'stages/first_stage.sh') diff --git a/stages/first_stage.sh b/stages/first_stage.sh index a491067..cb1503a 100644 --- a/stages/first_stage.sh +++ b/stages/first_stage.sh @@ -37,6 +37,7 @@ export main_partition_path="${disk_path}2" export hostname=$(python $REPOSITORY_PATH/util/read_config_string.py $CONFIG_FILE_PATH "hostname") export desktop=$(python $REPOSITORY_PATH/util/read_config_string.py $CONFIG_FILE_PATH "desktop") export admin_username=$(python $REPOSITORY_PATH/util/read_config_string.py $CONFIG_FILE_PATH "admin_username") +export system_encryption=$(python $REPOSITORY_PATH/util/read_config_string.py $CONFIG_FILE_PATH "system_encryption") bash confirm_installation.sh $disk @@ -45,6 +46,14 @@ bash check_bootmode.sh bash partition_disk.sh $disk_path +if [ $system_encryption == "yes" ];then + + bash create_crypto_partition.sh $main_partition_path + + bash create_logical_volumes.sh + +fi + bash create_filesystems.sh $efi_partition_path $main_partition_path bash mount_filesystems.sh $main_partition_path -- cgit v1.2.3-70-g09d2