135 |
} |
} |
136 |
#endif /* ! STAGE1_5 */ |
#endif /* ! STAGE1_5 */ |
137 |
|
|
|
#ifdef SUPPORT_DISKLESS |
|
|
/* Set up the diskless environment so that GRUB can get a configuration |
|
|
file from a network. */ |
|
|
static int |
|
|
setup_diskless_environment (void) |
|
|
{ |
|
|
/* For now, there is no difference between BOOTP and DHCP in GRUB. */ |
|
|
if (! bootp ()) |
|
|
{ |
|
|
grub_printf ("BOOTP/DHCP fails.\n"); |
|
|
return 0; |
|
|
} |
|
|
|
|
|
/* This will be erased soon, though... */ |
|
|
print_network_configuration (); |
|
|
return 1; |
|
|
} |
|
|
#endif /* SUPPORT_DISKLESS */ |
|
|
|
|
138 |
/* This queries for BIOS information. */ |
/* This queries for BIOS information. */ |
139 |
void |
void |
140 |
init_bios_info (void) |
init_bios_info (void) |
314 |
|
|
315 |
#endif /* STAGE1_5 */ |
#endif /* STAGE1_5 */ |
316 |
|
|
|
#ifdef SUPPORT_DISKLESS |
|
|
/* If SUPPORT_DISKLESS is defined, initialize the network here. */ |
|
|
if (! setup_diskless_environment ()) |
|
|
return; |
|
|
#endif |
|
|
|
|
317 |
/* Set boot drive and partition. */ |
/* Set boot drive and partition. */ |
318 |
saved_drive = boot_drive; |
saved_drive = boot_drive; |
319 |
saved_partition = install_partition; |
saved_partition = install_partition; |