Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wait for
mount
command to finish when mounting volume
command.Start() just starts the command. That catches some errors, but the nasty ones - bad options and similar - happen when the command runs. Use CombinedOutput() instead - it waits for the command to exit, and thus catches non-0 exit of the `mount` command (invalid options, for example). STDERR from the `mount` command is directly used, which isn't necessarily the best, but we can't really get much more info on what went wrong. Fixes containers#4303 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
- Loading branch information