BastilleBSD / bastille

Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
https://bastillebsd.org
BSD 3-Clause "New" or "Revised" License
858 stars 140 forks source link

[BUG] impossible to have spaces in mountpoints paths #682

Open cyrilst opened 9 months ago

cyrilst commented 9 months ago

Description It's impossible to have spaces in mountpoints paths.

Versions 0.10.20231125 13.2-RELEASE-p10 13.2-RELEASE-p10 13.2-RELEASE-p10

Installation with pkg

Steps to reproduce bastille mount azkaban '/host/path with spaces' jail/path does not work. The error is Detected invalid host path or incorrect mount type in FSTAB.

Expected behavior The mountpoint should allow spaces. I tried manually editing fstab and using the \040 character instead of a space, and it works.

If my understanding is right, this behavior is caused by the use of awk. Using /host\\040with\\040spaces passes the awk test, but then fails the -f test…