programs: sane-sandboxed: dont error if network mountpoints are offline
This commit is contained in:
parent
983bf93d8f
commit
3a6ee8708e
|
@ -154,10 +154,14 @@ firejailExec() {
|
|||
bwrapIngestRootPath() {
|
||||
# N.B.: use --dev-bind-try instead of --dev-bind for platform-specific paths like /run/opengl-driver-32
|
||||
# which don't exist on aarch64, as the -try variant will gracefully fail (i.e. not bind it).
|
||||
bwrapFlags+=("--dev-bind-try" "$1" "$1")
|
||||
# N.B.: `test -r` for paths like /mnt/servo-media, which may otherwise break bwrap when offline with
|
||||
# "bwrap: Can't get type of source /mnt/...: Input/output error"
|
||||
test -r "$1" && bwrapFlags+=("--dev-bind-try" "$1" "$1")
|
||||
}
|
||||
bwrapIngestHomePath() {
|
||||
bwrapFlags+=("--dev-bind" "$HOME/$1" "$HOME/$1")
|
||||
_path="$HOME/$1"
|
||||
# `test -r` isn't needed here, unless/until i try mounting a symlink like `~/Videos/servo` directly.
|
||||
bwrapFlags+=("--dev-bind" "$_path" "$_path")
|
||||
}
|
||||
bwrapIngestName() {
|
||||
echo "bwrap naming/labeling not yet implemented"
|
||||
|
|
Loading…
Reference in New Issue
Block a user