From 3eb30a05bfe9d95bef6686bb1b8973e21276043e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Mart=C3=ADn?= Date: Mon, 13 Nov 2023 19:01:27 +0100 Subject: [PATCH] Link `/proc/self/fd` to `/dev/fd` Link "/proc/self/fd" to "/dev/fd" within the tree to avoid "'/dev/fd/63': No such file or directory" errors --- stages/org.osbuild.rpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stages/org.osbuild.rpm b/stages/org.osbuild.rpm index 38270641bc..8c4c080e2e 100755 --- a/stages/org.osbuild.rpm +++ b/stages/org.osbuild.rpm @@ -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