Bug 144548

Summary: [boot] [patch] Enable automatic detection of amd64/i386 at boot time
Product: Base System Reporter: Alexei Volkov <Alexei.Volkov>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

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