diff --git a/mounts/org.osbuild.ostree.deployment b/mounts/org.osbuild.ostree.deployment index 9046fb05..f23a44da 100755 --- a/mounts/org.osbuild.ostree.deployment +++ b/mounts/org.osbuild.ostree.deployment @@ -105,22 +105,22 @@ class OSTreeDeploymentMount(mounts.MountService): # - `mount(8)` self.bind_mount(tree, tree) - root = ostree.deployment_path(tree, osname, ref, serial) + deploy_root = ostree.deployment_path(tree, osname, ref, serial) - print(f"Deployment root at '{os.path.relpath(root, tree)}'") + print(f"Deployment root at '{os.path.relpath(deploy_root, tree)}'") var = os.path.join(tree, "ostree", "deploy", osname, "var") boot = os.path.join(tree, "boot") - self.mountpoint = root - self.bind_mount(root, root) # prepare to move it later + self.mountpoint = deploy_root + self.bind_mount(deploy_root, deploy_root) # prepare to move it later - self.bind_mount(tree, os.path.join(root, "sysroot")) - self.bind_mount(var, os.path.join(root, "var")) - self.bind_mount(boot, os.path.join(root, "boot")) + self.bind_mount(tree, os.path.join(deploy_root, "sysroot")) + self.bind_mount(var, os.path.join(deploy_root, "var")) + self.bind_mount(boot, os.path.join(deploy_root, "boot")) subprocess.run([ - "mount", "--move", root, tree, + "mount", "--move", deploy_root, tree, ], check=True) self.mountpoint = tree