summaryrefslogtreecommitdiffstats
path: root/loader/loader.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-03-07 15:37:15 +0000
committerMatt Wilson <msw@redhat.com>2001-03-07 15:37:15 +0000
commitf37142c15140db161f058a859b7fb546fcae9cfe (patch)
tree336eb7849cd7797e87f1c3146ec047f5ec78ee3e /loader/loader.c
parentfcb43989e30c78fa59e334b29bfdb379657da70f (diff)
downloadanaconda-f37142c15140db161f058a859b7fb546fcae9cfe.tar.gz
anaconda-f37142c15140db161f058a859b7fb546fcae9cfe.tar.xz
anaconda-f37142c15140db161f058a859b7fb546fcae9cfe.zip
if the hard drive ks device is one of the devices that has it's own subdirectory (cciss, ida, md, i2o), read until the next / to get the actual device (#29567)
Diffstat (limited to 'loader/loader.c')
-rw-r--r--loader/loader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c
index ffdf8dabd..51a9f4572 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -2115,6 +2115,12 @@ int kickstartFromHardDrive(char * location,
#endif
fileName = strchr(source, '/');
+ if (!strncmp (source, "cciss", 5) ||
+ !strncmp (source, "ida", 3) ||
+ !strncmp (source, "i2o", 3) ||
+ !strncmp (source, "rd", 2))
+ /* chomp in the next part */
+ fileName = strchr(fileName, '/');
*fileName = '\0';
fileName++;
device = source;