Bug 144548 - [boot] [patch] Enable automatic detection of amd64/i386 at boot time
Summary: [boot] [patch] Enable automatic detection of amd64/i386 at boot time
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-08 11:00 UTC by Alexei Volkov
Modified: 2018-01-03 05:12 UTC (History)
0 users

See Also:


Attachments
file.diff (765 bytes, patch)
2010-03-08 11:00 UTC, Alexei Volkov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Volkov 2010-03-08 11:00:11 UTC
I wood like to to get bootable cd with auto selectable amd64/i386 boot kernel, but did not find any solution in current boot facilities.

For instance, if i have a bootable cd with two kernels located /boot/kernel.amd64
and /boot/kernel.i386 accordingly it looks pretty logical to have loader.conf  line like /kernel=kernel.${hw.machine} and it let boots up amd64 kernel if long mode supported.

Fix: I found that the boot facilities has everything to setup the hw.machine kernel environment variable, but does't do that.

Is it right to setup hw.machine kernel variable with a patch attached?

Patch attached with submission follows:
How-To-Repeat: append loader.conf with line 

kernel=kernel.${hw.machine}

andd see nothing will happend event you have kernels in a assumed path.
Comment 1 Brian Somers freebsd_committer 2010-06-19 10:38:15 UTC
Responsible Changed
From-To: freebsd-bugs->brian

This might be a good way to solve some problems I'll be having in 
the near future!
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:59 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped