forked from AbleOS/ableos
REPBUILD: Minor todo fix
This commit is contained in:
parent
16ccd51e4a
commit
d4670cb85d
|
@ -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();
|
||||
|
||||
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: check the disk.img time and system.toml time and if system.toml is higher then rebuild the disk
|
||||
// TODO: rebuild the disk
|
||||
}
|
||||
|
||||
match args.next().as_deref() {
|
||||
Some("build" | "b") => {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
[boot]
|
||||
# This package must be installed system wide
|
||||
init = "init_server"
|
||||
|
||||
|
||||
[boot.limine]
|
||||
default_entry = 1
|
||||
timeout = 0
|
||||
|
|
Loading…
Reference in a new issue