Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 481152

Summary: boot0-9.2_rc1: please add the code to install /boot/device.hints
Product: Gentoo/Alt Reporter: Yuta SATOH <nigoro.dev>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: FreeBSD   
URL: http://www.freebsd.org/doc/handbook/device-hints.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sample patch for boot0-9.2_rc1.ebuild

Description Yuta SATOH 2013-08-15 11:16:40 UTC
Currently, we are copying from /usr/src/sys/amd64/conf/GENERIC.hints to /boot/device.hints manually.

I think better to install it automatically.
Comment 1 Yuta SATOH 2013-08-15 11:27:09 UTC
Created attachment 356066 [details, diff]
sample patch for boot0-9.2_rc1.ebuild

Please remove part of CONFIG_PROTECT if you think not needed.
Comment 2 Alexis Ballier gentoo-dev 2013-08-15 17:14:13 UTC
not sure if the CONFIG_PROTECT is needed; for sure I wouldn't need it :)
if someone does not change it, this will have the same end result and if someone does he will appreciate it I think so I'm inclined to keep it.
Comment 3 Yuta SATOH 2013-08-16 11:07:05 UTC
(In reply to Alexis Ballier from comment #2)
> not sure if the CONFIG_PROTECT is needed; for sure I wouldn't need it :)
> if someone does not change it, this will have the same end result and if
> someone does he will appreciate it I think so I'm inclined to keep it.

When user has special hardware, it is necessary to edit /boot/device.hints.
Change IRQ number of serial port, ACPI disabled, etc ....

GENERIC.hints is sample resource hints file.
When CONFIG_PROTECT is not set, it is always overwritten.

I think that can be updated more safely by setting CONFIG_PROTECT.

details please see FreeBSD's man page.
http://www.freebsd.org/cgi/man.cgi?query=device.hints&amp;sektion=5
Comment 4 Alexis Ballier gentoo-dev 2013-08-16 13:24:23 UTC
applied, thanks!