From b1157730870955e662154816ea3450117b45d8ee Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 21 Jan 2020 19:22:19 +0100 Subject: Bugfix: Configure Initramfs and Desktop just if needed --- stages/second_stage.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stages/second_stage.sh b/stages/second_stage.sh index c2c0b92..2ce2ec7 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -29,10 +29,14 @@ bash configure_timezone.sh /usr/share/zoneinfo/Europe/Berlin bash configure_network.sh $hostname -bash configure_initramfs.sh +if [ $system_encryption == "yes" ]; then + bash configure_initramfs.sh +fi bash configure_users.sh $admin_username $DEFAULT_PASSWORD bash install_bootloader.sh $efi_partition_path $system_encryption $main_partition_path -bash configure_desktop.sh +if [ "$desktop_wanted" = "yes" ]; then + bash configure_desktop.sh $desktop +fi -- cgit v1.2.3-70-g09d2