From d45d41ee0bd52b28226e69317bca1c284009b397 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 25 Nov 2019 13:39:43 +0100 Subject: First version with desktop installation support. --- bin/second_stage.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/second_stage.sh') diff --git a/bin/second_stage.sh b/bin/second_stage.sh index f2fe43a..cd9abf9 100644 --- a/bin/second_stage.sh +++ b/bin/second_stage.sh @@ -28,6 +28,7 @@ hostname=$1 boot_partition_path=$2 REPOSITORY_PATH=$3 +CONFIG_FILE_PATH=$4 # Localization @@ -58,6 +59,14 @@ sleep 1 bash $REPOSITORY_PATH/bin/install_bootloader.sh $boot_partition_path +# Desktop Installation + +desktop=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "desktop") +if [ "$desktop" = "yes" ]; then + bash $REPOSITORY_PATH/bin/install_desktop.sh +fi + + # Good bye chroot echo "Leaving chroot environment - OK" -- cgit v1.2.3-70-g09d2