mount/ostree.deployment: Fix ostree deployment call

We need to pass in the root of the ostree deployment which can
be the tree or the mount. Fixes e1cbf92
This commit is contained in:
Dusty Mabe 2024-02-09 22:19:35 -05:00
parent 8389c6302e
commit 3fdb62e548

View file

@ -125,7 +125,6 @@ class OSTreeDeploymentMount(mounts.MountService):
options = args["options"]
source = options.get("source", "tree")
deployment = options["deployment"]
osname, ref, serial = ostree.parse_deployment_option(tree, deployment)
# The user could specify either the tree or mountroot as the
# place where we want the deployment to be mounted.
@ -134,6 +133,8 @@ class OSTreeDeploymentMount(mounts.MountService):
else:
target = tree
osname, ref, serial = ostree.parse_deployment_option(target, deployment)
# create a private mountpoint for the target path, which is
# needed in order to be able to move the deployment `root`
# mountpoint here, which is contained inside tree, since