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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue