diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-19 20:32:47 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-19 20:32:47 +0000 |
commit | 3ff23871359dd825c370267f4e2fc06680bf4ebe (patch) | |
tree | 8b5ba3ff4154b02f7b4c015b5e4a7c346534b771 /collage/commands.c | |
parent | c41a1a4dc7b367cac90af91f444c8bd9e2f159f5 (diff) | |
download | anaconda-3ff23871359dd825c370267f4e2fc06680bf4ebe.tar.gz anaconda-3ff23871359dd825c370267f4e2fc06680bf4ebe.tar.xz anaconda-3ff23871359dd825c370267f4e2fc06680bf4ebe.zip |
make mounting by LABEL= work
Diffstat (limited to 'collage/commands.c')
-rw-r--r-- | collage/commands.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/collage/commands.c b/collage/commands.c index 211b344e7..c6cae1c94 100644 --- a/collage/commands.c +++ b/collage/commands.c @@ -18,6 +18,7 @@ #include "commands.h" #include "idmap.h" #include "ls.h" +#include "mount_by_label.h" #include "popt.h" #include "../isys/cpio.h" @@ -113,6 +114,12 @@ int mountCommand(int argc, char ** argv) { dir = argv[4]; } + if (!strncmp(dev, "LABEL=", 6)) { + dev = get_spec_by_volume_label(dev + 6); + } else if (!strncmp(dev, "UUID=", 5)) { + dev = get_spec_by_uuid(dev + 5); + } + if (!strncmp(dev, "/dev/", 5) && access(dev, X_OK)) { dev += 5; buf = alloca(strlen(dev) + 10); |