mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 11:15:12 +00:00
* Handle devices that are symlinks.
svn path=/nixos/trunk/; revision=7477
This commit is contained in:
parent
bed8b44dc8
commit
cb4e81d38f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user