Bug 444969 - /usr/bin/elfspe-register: line 6: /proc/sys/fs/binfmt_misc/register: No such file or directory
Summary: /usr/bin/elfspe-register: line 6: /proc/sys/fs/binfmt_misc/register: No such ...
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libspe2   
(Show other bugs)
Version: 5.2
Hardware: powerpc
OS: Linux
Target Milestone: rc
: ---
Assignee: Petr Machata
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2008-05-02 13:53 UTC by James Laska
Modified: 2015-05-05 01:33 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 21:23:56 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0150 normal SHIPPED_LIVE libspe2 bug fix and enhancement update 2009-01-20 16:05:08 UTC

Description James Laska 2008-05-02 13:53:22 UTC
Description of problem:

Installing RHEL5.2-Server-Supplementary as a yum repo during anaconda
installation hilights a possible dependency issue with libelf.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start installation of RHEL5.2-Server-20080430.0/ppc
2. Use kickstart while specifying a repo for
3. Specify all Supplementary packages in the kickstart %packages
Actual results:

Installing elfspe2 -
/usr/bin/elfspe-register: line 6: /proc/sys/fs/binfmt_misc/register: No such
file or directory
error: %post(elfspe2- scriptlet failed, exit status 1

Expected results:
 - All supplementary packages install without dependency issues

Additional info:
 - kickstart used -
 - full install.log showing package installation order -

Comment 1 James Laska 2008-05-02 15:08:42 UTC
It appears the %script of elfspe2 attempts to tickle something in

I guess possible solutions might be:

1) elfspe2 %script should conditionally touch /proc/sys/fs/binfmt_misc only if

--- /tmp/libspe2.new    2008-05-02 11:07:46.000000000 -0400
+++ /tmp/libspe2.spec   2008-05-02 11:06:50.000000000 -0400
@@ -115,7 +115,7 @@
 %post -n elfspe2
 [ -f %{_initdir}/elfspe ] && /sbin/chkconfig --add elfspe
-[ -f %{_bindir}/elfspe-register -a -d /proc/sys/fs/binfmt_misc ] &&
+[ -f %{_bindir}/elfspe-register ] && %{_bindir}/elfspe-register


2) anaconda should mount /proc/sys/fs/binfmt_misc during install?

diff --git a/loader2/init.c b/loader2/init.c
index 062e001..973f476 100644
--- a/loader2/init.c
+++ b/loader2/init.c
@@ -616,6 +616,12 @@ int main(int argc, char **argv) {
         if (mount("/sys", "/sys", "sysfs", 0, NULL))
+    printf("mounting /proc/sys/fs/binfmt_misc filesystem... "); 
+    if (!testing) {
+        if (mount("/proc/sys/fs/binfmt_misc", "none", "binfmt_misc", 0, NULL))
+            fatal_error(1);
+    }
     /* these args are only for testing from commandline */

Adding clumens from anaconda-devel for his thoughts on the anaconda portion.

Comment 2 Bill Nottingham 2008-05-06 19:55:40 UTC
#1 is vastly more preferable - there's no reason for the packages to expect that
they're being installed on a live running system.

Comment 3 RHEL Product and Program Management 2008-06-02 20:02:37 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 6 Alexander Todorov 2008-10-22 07:52:59 UTC
Failing with elfspe2 package:

Installing elfspe2-
/usr/bin/elfspe-register: line 6: /proc/sys/fs/binfmt_misc/register: No such file or directory
error: %post(elfspe2- scriptlet failed, exit status 1

do you need another bug open for that ?

Comment 16 errata-xmlrpc 2009-01-20 21:23:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.