Mountpoint containing a space not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
If I want to mount a directory containing a space (for example to match a remote share name), it will not work currently with the default cc_mounts plugin.
- if I surround the mountpoint with quotes, it will create the destination directory properly, but then /etc/fstab won't contain the quotes and the spaces will cause parsing error in /etc/fstab
- If I use the common workaround of replacing spaces with \040, then the directory will contain a literal '\' and then '040', and the mountpoint won't be found because mount interprets the escape sequence properly.
My suggestion: when outputting to /etc/fstab, escape spaces (and any other character part of fstab grammar) properly. This way the cloud-init config will just work.
Changed in cloud-init: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Hi Anisse,
Thanks for using cloud-init and filing this bug! To be sure that we can reproduce the exact issue you're seeing, could you add an example cloud configuration that reproduces the issue here, please?
Once you've done so, please move this bug back to New and we'll take another look at it.
Thanks again!
Dan