[arch-projects] [INITSCRIPTS][PATCH 3/4] Support additional binary formats at boot
seblu at seblu.net
Tue Mar 13 07:15:33 EDT 2012
On Mon, Mar 12, 2012 at 11:12 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer <seblu at 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 at 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?
You can test this feature by droping a file wine.conf in /etc/binfmt.d
with the following content:
# Start WINE on Windows executables
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
You can read more detail on this linux feature in the kernel documentation.
I don't believe package currently use this feature.
There is a wiki page with example for java where the job is done in
rc.local. This patch will allow to do it by initscripts config.
More information about the arch-projects