Changed hostname generation

axtloss/rework-partitioning
UsernameSwift 2 years ago
parent bff226f95c
commit 7afdac632d

@ -1,6 +1,9 @@
use crate::internal::*;
pub fn set_hostname(hostname: &str) {
pub fn set_hostname(mut hostname: &str) {
if hostname == "---------" {
hostname = "crystal";
}
println!("Setting hostname to {}", hostname);
files::create_file("/mnt/etc/hostname");
files_eval(

Loading…
Cancel
Save