From a58fef6faad6f8d5d9625c5f40c1770c2aa7b265 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 29 Jun 2004 13:27:19 +0000 Subject: [PATCH] Add initrd-lvm to list of recognised argv[0]s. [pld-linux] --- tools/lvmcmdline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index 3264d67ce..b2d2b60a0 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -1394,7 +1394,8 @@ int lvm2_main(int argc, char **argv) base = basename(namebase); while (*base == '/') base++; - if (strcmp(base, "lvm") && strcmp(base, "lvm.static")) + if (strcmp(base, "lvm") && strcmp(base, "lvm.static") && + strcmp(base, "initrd-lvm")) alias = 1; free(namebase);