diff --git a/install/dracut-install.c b/install/dracut-install.c index 88bca1d441..5f352b3603 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -479,11 +479,7 @@ static int resolve_deps(const char *src) if (strstr(buf, destrootdir)) break; - p = strstr(buf, "=>"); - if (!p) - p = buf; - - p = strchr(p, '/'); + p = strchr(buf, '/'); if (p) { char *q;