RPM fails to install with RedHat Image builder
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 357
- PR merge metrics
- No merged PRs in 30d
Description
The RPM works fine when manually installed. However, when building an image with RedHat Image Builder, the following error occurs:
`error: Failed dependencies:
/bin/sh is needed by amazon-ssm-agent-3.2.923.0-1.x86_64
Traceback (most recent call last):
File "/run/osbuild/bin/org.osbuild.rpm", line 400, in
r = main(args["tree"], args["inputs"], args["options"])
File "/run/osbuild/bin/org.osbuild.rpm", line 360, in main
], cwd=pkgpath, check=True)
File "/usr/lib64/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['rpm', '--verbose', '--root', '/run/osbuild/tree', '--nosignature', '--install', '/tmp/manifest.ebfnfx_2']' returned non-zero exit status 254.`
Contributor guide
Research direction
Start by reproducing the amazon-ssm-agent RPM installation through Red Hat Image Builder and review the reported /run/osbuild/bin/org.osbuild.rpm traceback and package dependency error. Done means the RPM installs successfully during image building without the /bin/sh dependency failure.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100