Skip to content

Commit

Permalink
version v0.24.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cuhsat committed Jun 8, 2024
1 parent 40dfa95 commit fd7664e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/fmount/fmount.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ func IsEncrypted(dev string) (is bool, err error) {
return
}

func CreateImageMount(img, mnt string) error {
func CreateImageMount(img, mnt string) (dir string, err error) {
if len(mnt) == 0 {
mnt = BaseFile(img)
}

return os.MkdirAll(mnt, sys.MODE_DIR)
return mnt, os.MkdirAll(mnt, sys.MODE_DIR)
}

func CreateImageSymlink(img, dev string) (err error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/fmount/dd/dd.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Mount(img, mnt, key string, so bool) (parts []string, err error) {
}

// create mount point
if err = fmount.CreateImageMount(img, mnt); err != nil {
if mnt, err = fmount.CreateImageMount(img, mnt); err != nil {
return
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/fmount/vmdk/vmdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Mount(img, mnt, key string, so bool) (parts []string, err error) {
}

// create mount point
if err = fmount.CreateImageMount(img, mnt); err != nil {
if mnt, err = fmount.CreateImageMount(img, mnt); err != nil {
return
}

Expand Down

0 comments on commit fd7664e

Please sign in to comment.