From Fedora Project Wiki

< User:Spot

Revision as of 16:47, 29 May 2014 by Spot (talk | contribs) (Created page with "Packages which contain binfmt.d configuration settings must place them in /lib/binfmt.d/. Files in /etc/binfmt.d/ are reserved for the local administrator, and will override a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Packages which contain binfmt.d configuration settings must place them in /lib/binfmt.d/. Files in /etc/binfmt.d/ are reserved for the local administrator, and will override any files with the same name in /lib/binfmt.d/. These packages must also include scriptlets to try to restart the systemd-binfmt.service on install or removal:

Requires(post):  systemd
Requires(postun): systemd

...

%post
/bin/systemctl try-restart systemd-binfmt.service

%postun
if [ $1 -eq 0 ]; then
/bin/systemctl try-restart systemd-binfmt.service
fi