summaryrefslogtreecommitdiff
path: root/bin/second_stage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/second_stage.sh')
-rw-r--r--bin/second_stage.sh9
1 files changed, 9 insertions, 0 deletions
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"