for bind mount also have to prefix device

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2017-02-01 07:42:06 +01:00
parent e74d2be2d4
commit 1627b58cfc

View file

@ -54,6 +54,7 @@ else
printf 'mount' printf 'mount'
if [ "$type" = "bind" ]; then if [ "$type" = "bind" ]; then
printf ' --bind' printf ' --bind'
device="${prefix}${device}"
else else
printf ' -t "%s"' "$type" printf ' -t "%s"' "$type"
fi fi