revert keyboard config

axtloss/rework-partitioning
axtlos 2 years ago
parent d5e785ec79
commit 1dae723b61
No known key found for this signature in database
GPG Key ID: C08EB728CFA2DF4E

@ -55,7 +55,7 @@ pub fn set_locale(locale: String) {
exec_eval(exec_chroot("locale-gen", vec![]), "generate locales");
}
pub fn set_keyboard(keyboard: &str, variant: &str) {
pub fn set_keyboard(keyboard: &str) {
files::create_file("/mnt/etc/vconsole.conf");
files_eval(
files::append_file(

@ -40,7 +40,6 @@ struct Bootloader {
struct Locale {
locale: Vec<String>,
keymap: String,
variant: String,
timezone: String,
}
@ -125,7 +124,7 @@ pub fn read_config(configpath: PathBuf) {
log::info!("Using keymap : {}", config.locale.keymap);
log::info!("Setting timezone : {}", config.locale.timezone);
locale::set_locale(config.locale.locale.join(" "));
locale::set_keyboard(config.locale.keymap.as_str(), config.locale.variant.as_str());
locale::set_keyboard(config.locale.keymap.as_str());
locale::set_timezone(config.locale.timezone.as_str());
println!();
log::info!("Hostname : {}", config.networking.hostname);

Loading…
Cancel
Save