aboutsummaryrefslogtreecommitdiffstats
mount-binfmt_misc service

goetia-linux
goetia
Software
0x53.net

The mount-binfmt_misc service

mount-binfmt_misc is a oneshot service set up the binfmt_misc virtual filesystem.

When it is started:

  • It mounts the binfmt_misc virtual filesystem at /proc/sys/fs/binfmt_misc.
  • It reads all files at /etc/binfmt.d/*
  • For each line in each file it finds there, ignoring empty lines and lines starting with a #, it tries to apply the line as a registration string as defined here under the following conditions:
    • Files are ordered by elglob.
    • If name fields are duplicated, the last one processed will be applied.

When it is stopped:

  • It umounts /proc/sys/fs/binfmt_misc.

Examples

A file /etc/binfmt.d/wine.conf with the content :DOSWin:M::MZ::/bin/wine: would make windows binaries be executed using wine automatically.