mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[block] Allow for additional SAN boot parameters alongside filename
The drive specification alone does not necessarily contain enough information to perform a SAN boot (or local disk boot) under UEFI. If the next-stage bootloader is installed in the EFI system partition under a non-standard name (e.g. "\EFI\debian\grubx64.efi") then this explicit boot filename must also be specified. Generalise this concept to use a "SAN boot configuration parameters" structure (currently containing only the optional explicit boot filename), to allow for easy expansion to provide other parameters such as the partition UUID or volume label. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -95,11 +95,11 @@ static void dummy_san_unhook ( unsigned int drive ) {
|
||||
* Boot from dummy SAN device
|
||||
*
|
||||
* @v drive Drive number
|
||||
* @v filename Filename (or NULL to use default)
|
||||
* @v config Boot configuration parameters
|
||||
* @ret rc Return status code
|
||||
*/
|
||||
static int dummy_san_boot ( unsigned int drive __unused,
|
||||
const char *filename __unused ) {
|
||||
struct san_boot_config *config __unused ) {
|
||||
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ static void null_san_unhook ( unsigned int drive __unused ) {
|
||||
}
|
||||
|
||||
static int null_san_boot ( unsigned int drive __unused,
|
||||
const char *filename __unused ) {
|
||||
struct san_boot_config *config __unused ) {
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user