summaryrefslogtreecommitdiffstats
path: root/isys/imount.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-20 16:59:48 -0400
committerChris Lumens <clumens@redhat.com>2008-03-20 16:59:48 -0400
commit8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45 (patch)
treeeaa802890d3c23749ca0194578d955a2e54b3b5b /isys/imount.c
parent34766bdbd3fc658a92e43a1bba074da7562b3713 (diff)
downloadanaconda-8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45.tar.gz
anaconda-8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45.tar.xz
anaconda-8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45.zip
Don't prepend /dev/ on bind mounts either.
Diffstat (limited to 'isys/imount.c')
-rw-r--r--isys/imount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/isys/imount.c b/isys/imount.c
index 86db32c1d..91201b7ec 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -49,7 +49,8 @@ int doPwMount(char *dev, char *where, char *fs, char *options) {
opts = strdup("nolock");
device = strdup(dev);
} else {
- if (strncmp(dev, "LABEL=", 6) && strncmp(dev, "UUID=", 5) && *dev != '/')
+ if (strstr(options, "bind") == NULL && strncmp(dev, "LABEL=", 6) &&
+ strncmp(dev, "UUID=", 5) && *dev != '/')
rc = asprintf(&device, "/dev/%s", dev);
else
device = strdup(dev);