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 {
|
use {
|
||||||
error_stack::{bail, report, Context, IntoReport, Result, ResultExt},
|
error_stack::{bail, report, Context, IntoReport, Result, ResultExt},
|
||||||
fatfs::{FileSystem, FormatVolumeOptions, FsOptions, ReadWriteSeek},
|
fatfs::{FileSystem, FormatVolumeOptions, FsOptions, ReadWriteSeek},
|
||||||
|
@ -8,8 +10,14 @@ fn main() -> Result<(), Error> {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let mut args = std::env::args();
|
let mut args = std::env::args();
|
||||||
args.next();
|
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() {
|
match args.next().as_deref() {
|
||||||
Some("build" | "b") => {
|
Some("build" | "b") => {
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
[boot]
|
[boot]
|
||||||
# This package must be installed system wide
|
# This package must be installed system wide
|
||||||
init = "init_server"
|
init = "init_server"
|
||||||
|
|
||||||
|
|
||||||
[boot.limine]
|
[boot.limine]
|
||||||
default_entry = 1
|
default_entry = 1
|
||||||
timeout = 0
|
timeout = 0
|
||||||
|
|
Loading…
Reference in a new issue