Modify os scripts to mount file disks correctly
authorManuel Franceschini <manuel.franceschini@gmail.com>
Mon, 30 Jun 2008 14:58:51 +0000 (14:58 +0000)
committerManuel Franceschini <manuel.franceschini@gmail.com>
Mon, 30 Jun 2008 14:58:51 +0000 (14:58 +0000)
commit656f0ff5b5cde974094c3a6b0b14a5129606d02c
tree7cb68904c28c63dc19467ea8f54c6f6ca130b432
parent64c1fb0df35af54f9040a5057b75617924dc2cec
Modify os scripts to mount file disks correctly

This patch adds a conditional statement before mounting the with -b
given device to detect if it is a block device or a regular file. In the
former case it mounts it regularly, in the latter it tries to mount it
via loopback device.

Reviewed-by: iustinp
create
import
rename