On Mon, Mar 12, 2012 at 11:12 PM, Tom Gundersen <teg@jklm.no> wrote:
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer <seblu@seblu.net> wrote:
This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way.
Signed-off-by: Sébastien Luttringer <seblu@seblu.net>
I'm not necessarily opposed to this, but could you point to some usecases? I assume this will allow us to remove some code from some packages and have them ship a config file instead? Some examples like this would be nice. Do you want this examples added in commit message or in a manpages[1]?
You can test this feature by droping a file wine.conf in /etc/binfmt.d with the following content: # Start WINE on Windows executables :DOSWin:M::MZ::/usr/bin/wine: After a reboot, or a succeful run of /usr/lib/initscripts/arch-binfmt, you can run ./toto.exe and it will be lauched automagically with wine as interpreter. You can read more detail on this linux feature in the kernel documentation[2]. I don't believe package currently use this feature. There is a wiki page with example for java[3] where the job is done in rc.local. This patch will allow to do it by initscripts config. [1] http://linuxmanpages.net/manpages/fedora15/man5/binfmt.d.5.html [2] http://www.kernel.org/doc/Documentation/binfmt_misc.txt [3] https://wiki.archlinux.org/index.php/Binfmt_misc_for_Java -- Sébastien Luttringer www.seblu.net