* Handle devices that are symlinks.

svn path=/nixos/trunk/; revision=7477
This commit is contained in:
Eelco Dolstra 2006-12-24 00:54:52 +00:00
parent bed8b44dc8
commit cb4e81d38f
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ script
continue
fi
device=$(readlink -f \"$device\")
# If $device is already mounted somewhere else, unmount it first.
# !!! Note: we use /etc/mtab, not /proc/mounts, because mtab
# contains more accurate info when using loop devices.