salt.states.mount persistence error using spaces in route #27160
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
help-wanted
Community help is needed to resolve this
P4
Priority 4
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
When you use the state
mount.mounted
usingpersist: True
and you have spaces in the name of the device, it saves the name with spaces in/etc/fstab
but this file won't understand spaces.For example:
This example will mount the desired network share, but also add to fstab this line:
This will result in not mounting the share again when the system is restarted, because fstab needs another interpretation for whitespaces, is should be like this>
Maybe the best fix is to replace
'\ '
with'\040'
when writing this strings to fstab.The text was updated successfully, but these errors were encountered: