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

Bug 53448

Summary: Gentoo needs a init script for binfmt configuration
Product: Gentoo Linux Reporter: Gustavo Ribeiro Alves <gralves>
Component: [OLD] Core systemAssignee: SpanKY <vapier>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gustavo Ribeiro Alves 2004-06-09 14:10:47 UTC
Does gentoo have a init script for setting binfmt_misc? I know all you have to do is add an echo ':DOSWin:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register
 or something similar. But I think it might be a good idea to have a file on /etc where you would write something like

DosWin M MZ /usr/bin/wine
Java   M \xca\xfe\xba\xbe /usr/bin/javawrapper
ExecutableJAR E jar /usr/bin/jarwrapper
Applet E html /opt/sun-jdk-1.4.2.04/bin/appletviewer
Applet M <!--applet /opt/sun-jdk-1.4.2.04/bin/appletviewer

The script would then read the file and echo the correct line to /proc/sys/fs/binfmt_misc/register

when you choosed to unload it would send an echo -1 to that file

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-06-21 20:02:52 UTC
use /etc/sysctl.conf ... that's why it exists ...

i use it for my wine registrations :)