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 (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-03-08 11:00 UTC by Alexei Volkov
Modified: 2022-10-17 12:37 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 freebsd_triage 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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:37:02 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>