Fix mount loop test for bindings
test -f will fail if we wanted to bind to a directory, so use test -r instead. See FS#15356 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
2aca746d58
commit
1dbbd6afcb
@ -94,7 +94,7 @@ run_hook ()
|
||||
|
||||
[ "$imgarch" != "$arch" ] && continue
|
||||
|
||||
[ ! -f "/bootmnt/${img}" ] && continue
|
||||
[ ! -r "/bootmnt/${img}" ] && continue
|
||||
|
||||
if [ "${type}" = "bind" ]; then
|
||||
_mnt_bind "/bootmnt/${img}" ${mountpoint}
|
||||
|
Loading…
Reference in New Issue
Block a user