--- kexecboot-0.3/devicescan.c 2008-08-01 22:50:35.000000000 +0200 +++ kexecboot/devicescan.c 2008-08-18 22:17:39.000000000 +0200 @@ -166,6 +166,12 @@ bl->list[count]->device = device; bl->list[count]->fstype = fstype; bl->list[count]->kernelpath = kernelpath; + + /* prefer the cmdline filtered in /proc */ + bl->list[count]->cmdline = getenv("kinit_params"); + if (! strlen(bl->list[count]->cmdline) == "") { + + if ( (g = fopen("/mnt/boot/kernel-cmdline", "r")) ) { bl->list[count]->cmdline = malloc(COMMAND_LINE_SIZE); @@ -177,6 +183,7 @@ } else bl->list[count]->cmdline = NULL; + } count++; if (count == size) { size *= 2;