1
0
Fork 0

REPBUILD: Minor todo fix

master
able 2023-06-13 21:03:09 -05:00
parent cb59744ba0
commit cc568e90bc
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,5 @@
use std::fs;
use {
error_stack::{bail, report, Context, IntoReport, Result, ResultExt},
fatfs::{FileSystem, FormatVolumeOptions, FsOptions, ReadWriteSeek},
@ -8,8 +10,14 @@ fn main() -> Result<(), Error> {
env_logger::init();
let mut args = std::env::args();
args.next();
// TODO: work on adding in system.toml support
// TODO: check the disk.img time and system.toml time and if system.toml is higher then rebuild the disk
let disk_meta = fs::metadata("target/disk.img").unwrap();
let config_meta = fs::metadata("system.toml").unwrap();
if disk_meta.modified().unwrap() < config_meta.modified().unwrap() {
// TODO: work on adding in system.toml support
// TODO: rebuild the disk
}
match args.next().as_deref() {
Some("build" | "b") => {

View File

@ -1,6 +1,8 @@
[boot]
# This package must be installed system wide
init = "init_server"
[boot.limine]
default_entry = 1
timeout = 0