From db229e2f37ae8bdae3fac3fb7e2cb9cb286332c1 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 28 Dec 2024 06:17:53 +0100 Subject: [PATCH] fix OoOE --- src/install/mod.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/install/mod.rs b/src/install/mod.rs index ef44191..a0c0049 100644 --- a/src/install/mod.rs +++ b/src/install/mod.rs @@ -28,6 +28,7 @@ pub mod zram; use crate::{ config::InstallConfig, pkg::{self, install_pkgs, pacstrap}, + print_status, }; pub fn str_vec(v: Vec<&str>) -> Vec { @@ -94,6 +95,12 @@ pub fn install(conf: InstallConfig) { crate::config::InstallMode::Base => {} crate::config::InstallMode::Desktop => { install_pkgs(&pkg::DESKTOP_PKG); + print_status("Enable SDDM"); + std::os::unix::fs::symlink( + "/usr/lib/systemd/system/sddm.service", + "/mnt/etc/systemd/system/display-manager.service", + ) + .unwrap(); } crate::config::InstallMode::Server => { install_pkgs(&pkg::SERVER_PKG); @@ -112,9 +119,12 @@ pub fn install(conf: InstallConfig) { } setup_zram(); - setup_secure_boot(); setup_mkinitcpio(); - setup_tpm_unlock(&conf.drive); + setup_secure_boot(); + + if conf.general.encryption { + setup_tpm_unlock(&conf.drive); + } println!("{}", "System install complete".paint(Color::Green)); }