]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.c
discover/boot: Fix condition for updating boot params
[petitboot] / discover / boot.c
index 13dfe0c9781fc5be889e48e34340cbb4e952aecd..83bcc7bfe8ce5c2b96d54f537d689fe21ebb4a9e 100644 (file)
@@ -266,11 +266,9 @@ static void run_boot_hooks(struct boot_task *task)
                        /* if the hook returned with BOOT_HOOK_EXIT_UPDATE,
                         * then we process stdout to look for updated params
                         */
-                       if (rc == BOOT_HOOK_EXIT_UPDATE) {
-                               boot_hook_update(task, hooks[i]->d_name,
-                                               process->stdout_buf);
-                               boot_hook_setenv(task);
-                       }
+                       boot_hook_update(task, hooks[i]->d_name,
+                                       process->stdout_buf);
+                       boot_hook_setenv(task);
                }
 
                process_release(process);