cmd: drop args to MountImage to use with vfs

the vfs driver does not create any mount, so it doesn't accept any
argument passed to MountImage.  Drop the arguments so mount image can
be used in the tests suite.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2025-03-18 00:32:36 +01:00
parent 17feb04039
commit 7082298e07
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func mount(flags *mflag.FlagSet, action string, m storage.Store, args []string)
moes := []mountPointOrError{}
for _, arg := range args {
if paramReadOnly {
result, err := m.MountImage(arg, []string{"noexec", "nosuid"}, paramMountLabel)
result, err := m.MountImage(arg, []string{}, paramMountLabel)
errText := ""
if err != nil {
errText = err.Error()