Why does RHEL image builder fails with error: failed to exec scriptlet interpreter /bin/sh: Permission denied

Solution Verified - Updated -

Issue

  • RHEL Image builder fails to build an image with a simple test blueprint.

    # composer-cli blueprints show test-blueprint
    name = "test-blueprint"
    description = "test-blueprint"
    version = "0.0.1"
    modules = []
    groups = []
    distro = ""
    
    [[packages]]
    name = "tmux"
    version = "*"
    
    [customizations]
    
    [[customizations.user]]
    name = "root"
    password = "<redacted>"
    
  • The errors generated in the journal logs show the following for osbuild-worker unit failed with Permission Denied below

    <...output skipped...>
    level=info msg="    diffutils-3.6-6.el8.x86_64" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    error: failed to exec scriptlet interpreter /bin/sh: Permission denied" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    warning: %post(diffutils-3.6-6.el8.x86_64) scriptlet failed, exit status 127" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    findutils-1:4.6.0-21.el8.x86_64" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    error: failed to exec scriptlet interpreter /bin/sh: Permission denied" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    warning: %post(findutils-1:4.6.0-21.el8.x86_64) scriptlet failed, exit status 127" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    libgomp-8.5.0-20.el8.x86_64" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    error: failed to exec scriptlet interpreter /bin/sh: Permission denied" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    warning: %post(libgomp-8.5.0-20.el8.x86_64) scriptlet failed, exit status 127" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    libgpg-error-1.31-1.el8.x86_64" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    libgcrypt-1.8.5-7.el8_6.x86_64" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    level=info msg="    error: failed to exec scriptlet interpreter /sbin/ldconfig: Permission denied" jobId=edd20b64-f6b4-41f4-b30e-a3f86f5c8a99
    <...output skipped...>
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Image Builder
  • osbuild-composer

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content