Skip to content

Commit

Permalink
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
  • Loading branch information
mmartinv committed Nov 14, 2023
1 parent 5acd723 commit 3eb30a0
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 @@ -305,6 +305,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 3eb30a0

Please sign in to comment.