uri: Make 'uuid' an alias of 'guid'

This commit is contained in:
mintsuki 2020-12-10 07:22:06 +01:00
parent 08d53bff58
commit 0a8eae7bbe
5 changed files with 3 additions and 0 deletions

View File

@ -102,4 +102,5 @@ A resource can be one of the following:
* `boot` - The `root` is the 1-based decimal value representing the partition on the boot drive. If omitted, the partition containing the configuration file on the boot drive is used. For example: `boot://2/...` will use partition 2 of the boot drive and `boot:///...` will use the partition containing the config file on the boot drive.
* `bios` - The `root` takes the form of `drive:partition`; for example: `bios://3:1/...` would use BIOS drive 3, partition 1. Partitions and BIOS drives are both 1-based. Omitting the drive is possible; for example: `bios://:2/...`. Omitting the drive makes Limine use the boot drive.
* `guid` - The `root` takes the form of a GUID/UUID, such as `guid://736b5698-5ae1-4dff-be2c-ef8f44a61c52/...`. The GUID is that of either a filesystem, when available, or a GPT partition GUID, when using GPT, in a unified namespace.
* `uuid` - Alias of `guid`.
* `tftp` - The `root` is the IP address of the tftp server to load the file from. If the root is left empty (`tftp:///...`) the file will be loaded from the server Limine booted from. This resource is only available when booting off PXE.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -184,6 +184,8 @@ bool uri_open(struct file_handle *fd, char *uri) {
return uri_boot_dispatch(fd, root, path);
} else if (!strcmp(resource, "guid")) {
return uri_guid_dispatch(fd, root, path);
} else if (!strcmp(resource, "uuid")) {
return uri_guid_dispatch(fd, root, path);
} else if (!strcmp(resource, "tftp")) {
return uri_tftp_dispatch(fd, root, path);
} else {