summaryrefslogtreecommitdiffstats
path: root/isys/imount.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-18 11:51:27 -0400
committerChris Lumens <clumens@redhat.com>2008-03-18 13:15:29 -0400
commit1cdfe73d41d78376dea9cb77b20e96e8553f8875 (patch)
tree29ac1acbf116e577cc8a802875d0c66f11e612a7 /isys/imount.c
parent4d1434eafcf9a848770d47a15f320ddd72f56e0f (diff)
downloadanaconda-1cdfe73d41d78376dea9cb77b20e96e8553f8875.tar.gz
anaconda-1cdfe73d41d78376dea9cb77b20e96e8553f8875.tar.xz
anaconda-1cdfe73d41d78376dea9cb77b20e96e8553f8875.zip
Don't add /dev/ to LABEL= or UUID= devices either.
Diffstat (limited to 'isys/imount.c')
-rw-r--r--isys/imount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/imount.c b/isys/imount.c
index 4a495ccec..86db32c1d 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -49,7 +49,7 @@ int doPwMount(char *dev, char *where, char *fs, char *options) {
opts = strdup("nolock");
device = strdup(dev);
} else {
- if (*dev != '/')
+ if (strncmp(dev, "LABEL=", 6) && strncmp(dev, "UUID=", 5) && *dev != '/')
rc = asprintf(&device, "/dev/%s", dev);
else
device = strdup(dev);