diff --git a/README.md b/README.md index 221dc42..3d55f92 100755 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ jade genfstab jade locale colemak Europe/Berlin en_US.UTF-8 UTF-8 ``` -### configue network settings +### configure network settings ```sh # set the hostname to getcryst.al with ipv6 disabled jade networking getcryst.al diff --git a/src/functions/base.rs b/src/functions/base.rs index a24fd5a..9bf0572 100755 --- a/src/functions/base.rs +++ b/src/functions/base.rs @@ -9,7 +9,7 @@ pub fn install_base_packages(kernel: String) { std::fs::create_dir_all("/mnt/etc").unwrap(); files::copy_file("/etc/pacman.conf", "/mnt/etc/pacman.conf"); if kernel.is_empty() { - kernel_to_install = "linux".to_string + kernel_to_install = "linux".to_string(); } else { match kernel.as_str() { "linux" => kernel_to_install = "linux".to_string(), diff --git a/src/functions/unakite.rs b/src/functions/unakite.rs index 35640dd..0391eb0 100644 --- a/src/functions/unakite.rs +++ b/src/functions/unakite.rs @@ -144,7 +144,7 @@ pub fn remount(root: &str, oldroot: &str, efi: bool, efidir: &str, bootdev: &str pub fn setup_unakite(root: &str, oldroot: &str, efi: bool, efidir: &str, bootdev: &str) { log::debug!("Setting up Unakite"); remount(root, oldroot, efi, efidir, bootdev, true); - base::install_base_packages(); + base::install_base_packages("linux".to_string()); base::genfstab(); locale::set_locale("en_US.UTF-8 UTF-8".to_string()); locale::set_timezone("Europe/Berlin"); // TODO: get the proper timezone @@ -203,4 +203,4 @@ pub fn setup_unakite(root: &str, oldroot: &str, efi: bool, efidir: &str, bootdev ), "Recreate grub.cfg in crystal" ); -} \ No newline at end of file +} diff --git a/src/internal/config.rs b/src/internal/config.rs index 1b7cd99..bdf217a 100755 --- a/src/internal/config.rs +++ b/src/internal/config.rs @@ -107,7 +107,7 @@ pub fn read_config(configpath: PathBuf) { &mut partitions, config.unakite.enable ); - base::install_base_packages(kernel); + base::install_base_packages(config.kernel); base::genfstab(); println!(); log::info!("Installing bootloader : {}", config.bootloader.r#type);