Skip to content
Snippets Groups Projects
Commit d317c1fc authored by Denis Pynkin's avatar Denis Pynkin
Browse files

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: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent f927b977
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment