mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 20:13:02 -04:00
Merge from sys/boot/i386/libi386/bootinfo.c revision 1.21.
This commit is contained in:
parent
d0667a22d9
commit
fd8d953545
1 changed files with 6 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bootinfo.c,v 1.3 1999/03/19 15:58:05 kato Exp $
|
||||
* $Id: bootinfo.c,v 1.4 1999/06/06 12:46:40 kato Exp $
|
||||
*/
|
||||
|
||||
#include <stand.h>
|
||||
|
|
@ -264,6 +264,10 @@ bi_load(char *args, int *howtop, int *bootdevp, vm_offset_t *bip)
|
|||
return(EINVAL);
|
||||
}
|
||||
|
||||
/* Try reading the /etc/fstab file to select the root device */
|
||||
getrootmount(i386_fmtdev((void *)rootdev));
|
||||
|
||||
/* Do legacy rootdev guessing */
|
||||
switch(rootdev->d_type) {
|
||||
case DEVT_DISK:
|
||||
/* pass in the BIOS device number of the current disk */
|
||||
|
|
@ -275,7 +279,7 @@ bi_load(char *args, int *howtop, int *bootdevp, vm_offset_t *bip)
|
|||
return(EINVAL);
|
||||
|
||||
default:
|
||||
printf("aout_exec: WARNING - don't know how to boot from device type %d\n", rootdev->d_type);
|
||||
printf("WARNING - don't know how to boot from device type %d\n", rootdev->d_type);
|
||||
}
|
||||
free(rootdev);
|
||||
*bootdevp = bootdevnr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue