We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24eff7e commit f00dbf0Copy full SHA for f00dbf0
pkg/vfkit/mount.go
@@ -5,6 +5,7 @@ package vfkit
5
6
import (
7
"fmt"
8
+ "strings"
9
10
"github.com/crc-org/vfkit/pkg/config"
11
)
@@ -56,7 +57,9 @@ func (m *_mounts) toVFKit() (devices []config.VirtioDevice) {
56
57
58
func (m *_mounts) toFSTAB() (result []string) {
59
for _, fs := range m.list {
- fstab := fmt.Sprintf("%s %s virtiofs defaults 0 0", fs.tag, fs.shareDir)
60
+ // See: https://wiki.archlinux.org/title/Fstab#Filepath_spaces
61
+ dir := strings.ReplaceAll(fs.shareDir, " ", `\\\\040`)
62
+ fstab := fmt.Sprintf("%s %s virtiofs defaults 0 0", fs.tag, dir)
63
result = append(result, fstab)
64
}
65
0 commit comments