fstab mount point with spaces in prefix.
Opened this issue · 1 comments
macktab commented
Tried to add line to fstab with spaces in prefix:
goofys#"example:PREFIX WITH SPACE" /mnt/example fuse _netdev,allow_other,--file-mode=0666,--uid=1002,--gid=1002,--dir-mode=0775,--stat-cache-ttl=1s,--type-cache-ttl=0s,--profile=example 0 0
Also tried goofys#example:"PREFIX WITH SPACE"
.
Getting error mount: /etc/fstab: parse error at line 20 -- ignored
.
Is there way to do that?
antwan commented
Your best shot is to create a wrapper script that passes the prefix directly, then use it in fstab.
/usr/bin/goofys-mount.sh
#!/bin/bash
goofys bucket:"prefix with spaces" $*
/etc/fstab
goofys-mount.sh# /mnt/example fuse _netdev,allow_other 0 0