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:
parent
8389c6302e
commit
3fdb62e548
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue