We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c90d9 commit 1332453Copy full SHA for 1332453
hooks/kernel-install/52-ugrd.install
@@ -10,6 +10,6 @@ KERNEL_VERSION="${2:?}"
10
[[ ${KERNEL_INSTALL_INITRD_GENERATOR} == "ugrd" ]] || exit 0
11
12
# only run when the COMMAND is add, and fewer than 5 arguments are passed
13
-[[ "$COMMAND" != "add" || "$#" -gt 4 ]] || exit 0
+[[ "$COMMAND" == "add" || "$#" -lt 5 ]] || exit 0
14
15
ugrd "$([[ $KERNEL_INSTALL_VERBOSE == 1 ]] && echo --debug)" --no-rotate --kver "$KERNEL_VERSION" "$KERNEL_INSTALL_STAGING_AREA/initrd" || exit 1
0 commit comments