From d317c1fcb25421301afff78c64fe3244ca324961 Mon Sep 17 00:00:00 2001
From: Denis Pynkin <denis.pynkin@collabora.com>
Date: Mon, 3 May 2021 02:58:29 +0300
Subject: [PATCH] 85-initrd: fix the args number

`kernel-install` pass 5 args to modules anyway, so empty argument
do not allow to install the initrd file into boot entry directory.
Since we do not pass the initrd name via options module
`90-loaderentry.install` also skip the initrd copying and setup.

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
---
 debian/extra/kernel-install.d/85-initrd.install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/extra/kernel-install.d/85-initrd.install b/debian/extra/kernel-install.d/85-initrd.install
index 4f8b1014..68803595 100755
--- a/debian/extra/kernel-install.d/85-initrd.install
+++ b/debian/extra/kernel-install.d/85-initrd.install
@@ -19,7 +19,7 @@ if [ "$COMMAND" != add ]; then
     exit 1
 fi
 
-if [ "$#" -ge 5 ]; then
+if [ "$#" -gt 5 ]; then
     # An explicit initrd path was passed, 90-loaderentry.install knows how to handle this;
     # copying here would just duplicate the file, since the basename is very likely different
     exit 0
-- 
GitLab