Fix zramd package name and add zramd to config

axtloss/rework-partitioning
axtloss 2 years ago
parent 33298ebf1d
commit 5e6ea97aba

@ -168,7 +168,7 @@ pub fn install_flatpak() {
} }
pub fn install_zram() { pub fn install_zram() {
install(vec!["zram"]); install(vec!["zramd"]);
exec_eval( exec_eval(
exec_chroot( exec_chroot(
"systemctl", "systemctl",

@ -16,6 +16,7 @@ struct Config {
desktop: String, desktop: String,
timeshift: bool, timeshift: bool,
flatpak: bool, flatpak: bool,
zramd: bool,
extra_packages: Vec<String>, extra_packages: Vec<String>,
unakite: Unakite, unakite: Unakite,
kernel: String, kernel: String,
@ -135,6 +136,12 @@ pub fn read_config(configpath: PathBuf) {
} }
println!(); println!();
println!("---------"); println!("---------");
log::info!("Enabling zramd : {}", config.zramd);
if config.zramd {
base::install_zram();
}
println!();
println!("---------");
for i in 0..config.users.len() { for i in 0..config.users.len() {
log::info!("Creating user : {}", config.users[i].name); log::info!("Creating user : {}", config.users[i].name);
log::info!("Setting use password : {}", config.users[i].password); log::info!("Setting use password : {}", config.users[i].password);

Loading…
Cancel
Save