Skip to content

Commit

Permalink
RPM stage: link /proc/self/fd to /dev/fd
Browse files Browse the repository at this point in the history
Link "/proc/self/fd" to "/dev/fd" within the tree
to avoid "'/dev/fd/63': No such file or directory" errors

Signed-off-by: Miguel Martín <mmartinv@redhat.com>
  • Loading branch information
mmartinv committed Nov 14, 2023
1 parent d52738d commit 4e5ff9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stages/org.osbuild.rpm
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ def main(tree, inputs, options):
os.makedirs(target, exist_ok=True)
mount(source, target, ro=False)

os.symlink("/proc/self/fd", f"{tree}/dev/fd")

machine_id_created = create_machine_id_if_needed(tree)

ostree_booted = None
Expand Down

0 comments on commit 4e5ff9c

Please sign in to comment.