diff --git a/src/functions/base.rs b/src/functions/base.rs index 729b303..fc04fea 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -168,7 +168,7 @@ pub fn install_flatpak() { } pub fn install_zram() { - install(vec!["zram"]); + install(vec!["zramd"]); exec_eval( exec_chroot( "systemctl", diff --git a/src/internal/config.rs b/src/internal/config.rs index 5a2212b..ed145c5 100755 --- a/src/internal/config.rs +++ b/src/internal/config.rs @@ -16,6 +16,7 @@ struct Config { desktop: String, timeshift: bool, flatpak: bool, + zramd: bool, extra_packages: Vec, unakite: Unakite, kernel: String, @@ -135,6 +136,12 @@ pub fn read_config(configpath: PathBuf) { } println!(); println!("---------"); + log::info!("Enabling zramd : {}", config.zramd); + if config.zramd { + base::install_zram(); + } + println!(); + println!("---------"); for i in 0..config.users.len() { log::info!("Creating user : {}", config.users[i].name); log::info!("Setting use password : {}", config.users[i].password);