diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 23:36:53 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-12 23:53:58 -0400 |
commit | 8d28968d713e8cad1aef79e293a6413b24c3a88b (patch) | |
tree | bcfa590cd142951b1b1fdea7e9710bd37a01cfcb /osi-mk | |
parent | f46ece4a582120582c785389139c2066b7540bd4 (diff) |
osi-mount: rewrite
- Add real option parsing
- Split in to 2 distinct --root/--user modes
- Ensure we umount before exiting. Otherwise there might be a delay
between us exiting and the umount happening when the mount
namespace gets GC'd.
Diffstat (limited to 'osi-mk')
-rwxr-xr-x | osi-mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -172,7 +172,7 @@ main() { arg_mountpoint=$(mktemp -dt -- "${0##*/}.XXXXXXXXXX") # shellcheck disable=SC2064 trap "rmdir -- ${arg_mountpoint@Q}" EXIT - sudo -- ./osi-mount "$arg_file" "$arg_mountpoint" "${BASH_SOURCE[0]}" --inside="$arg_mountpoint" "${args[@]}" + sudo -- ./osi-mount --root -- "$arg_file" "$arg_mountpoint" "${BASH_SOURCE[0]}" --inside="$arg_mountpoint" "${args[@]}" ;; inside) # just keep reading... needs_sudo |