Skip to content

[Bug]: mount: unable to mount a snapshot to a specific path #2086

@brmzkw

Description

@brmzkw

Describe the bug

According to the help message of plakar mount, the syntax -to PATH SNAPSHOT_ID is supported.

plakar at ./toto mount -h
Usage: mount [-to PATH] [snapshotID]

but it's not:

plakar at ./toto mount -to ./tutu 0c92354c
plakar: sub : invalid argument

Steps to reproduce

mkdir -p /tmp/tutu
plakar at /tmp/toto create -plaintext
plakar at /tmp/toto backup /etc
snapshot=$(plakar at /tmp/toto ls | awk '{print $2}')
plakar at /tmp/toto mount -to /tmp/tutu $snapshot

Expected behavior

The mount should succeed.

Actual behavior

Plakar returns `plakar: sub : invalid argument`

Plakar version

plakar/v1.1.0-devel.49829ee8bfebea8fa68a680f9e4c060a57298fe4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions