added wallpaper for bootloader

This commit is contained in:
Erin 2023-01-07 23:44:50 +01:00 committed by ondra05
parent c241d839f2
commit b5f75a13f4
3 changed files with 6 additions and 2 deletions

BIN
repbuild/background.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View file

@ -1,13 +1,12 @@
${ABLEOS_KERNEL}=boot:///kernel
# TODO: Make a boot background image for ableOS
# ${WALLPAPER_PATH}=boot:///boot/bg.bmp
DEFAULT_ENTRY=1
TIMEOUT=3
VERBOSE=yes
INTERFACE_RESOLUTION=800x600
# Terminal related settings
# TERM_WALLPAPER=${WALLPAPER_PATH}
TERM_WALLPAPER=boot:///background.bmp
TERM_BACKDROP=008080
:ableOS

View file

@ -76,6 +76,11 @@ fn get_fs() -> Result<FileSystem<impl ReadWriteSeek>, io::Error> {
&mut fs.root_dir().create_file("limine.cfg")?,
)?;
io::copy(
&mut File::open(Path::new("repbuild/background.bmp"))?,
&mut fs.root_dir().create_file("background.bmp")?,
)?;
drop(bootdir);
Ok(fs)
}