config: Update search paths

This commit is contained in:
mintsuki 2021-03-14 07:04:12 +01:00
parent 8b8b78417e
commit 503fb92c90
2 changed files with 2 additions and 5 deletions

View File

@ -3,9 +3,7 @@
## Location of the config file
Limine scans for a config file on *the boot drive*. Every partition on the boot drive
is scanned sequentially (first partition first, last partition last) for the presence
of either a `/limine.cfg`, `/boot/limine.cfg`, `/tomatboot.cfg`, or a
`/boot/tomatboot.cfg` file, in that order.
is scanned sequentially (first partition first, last partition last) for the presence of either a `/limine.cfg`, `/boot/limine.cfg`, or a `/EFI/BOOT/limine.cfg` file, in that order.
Once the file is located, Limine will use it as its config file. Other possible
candidates in subsequent partitions or directories are ignored.

View File

@ -21,8 +21,7 @@ int init_config_disk(struct volume *part) {
if (fopen(&f, part, "/limine.cfg")
&& fopen(&f, part, "/boot/limine.cfg")
&& fopen(&f, part, "/tomatboot.cfg")
&& fopen(&f, part, "/boot/tomatboot.cfg")) {
&& fopen(&f, part, "/EFI/BOOT/limine.cfg")) {
return -1;
}