image creation
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-04-04 23:03:26 +02:00
parent 8d046e5852
commit 0ac815f9f4
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 47 additions and 7 deletions

View file

@ -10,7 +10,7 @@ mod linux;
mod pkg;
mod print;
use create_iso::create_iso;
use install::{install, security::ensure_secure_boot};
use install::{drives::setup_disk_image, install, install_mnt, security::ensure_secure_boot};
use linux::is_root;
use print::print_config;
use yansi::{Color, Paint};
@ -58,9 +58,10 @@ fn main() {
Some(("create-img", install_args)) => {
let config_file: &String = install_args.get_one("config").unwrap();
let conf = read_conf(config_file);
let img_file: &String = install_args.get_one("image").unwrap();
println!("Installing to a disk image is not yet supported");
unimplemented!()
setup_disk_image(img_file.as_str());
install_mnt(conf, false);
}
Some(("install", install_args)) => {
if !is_root() {
@ -81,7 +82,7 @@ fn main() {
}
// Run the
install(conf);
install(conf, true);
}
_ => {}
}