Lines Matching defs:kernel

173 	"kernel",	/* KERNEL_CMD */
174 "kernel$", /* KERNEL_DOLLAR_CMD */
1477 * end of the kernel$ string the routine to enable the
2933 * in boot based on presence/absence of a kernel module.
4590 BAM_DPRINTF(("%s: not a kernel command: %s\n", fcn, cmd));
4636 BAM_DPRINTF(("%s: is HAND kernel flag: %s\n", fcn, arg));
4645 BAM_DPRINTF(("%s: is UNKNOWN kernel entry: %s\n", fcn, arg));
4646 bam_error(_("kernel command on line %d not recognized.\n"),
5141 char *kernel,
5164 if (kernel == NULL) {
5175 /* Figure the commands out from the kernel line */
5176 if (strstr(kernel, "$ISADIR") != NULL) {
5178 } else if (strstr(kernel, "amd64") != NULL) {
5221 menu_cmds[k_cmd], menu_cmds[SEP_CMD], kernel);
8138 * - Else, match on root/findroot, kernel, and module.
8146 char *kernel,
8206 lp = lp->next; /* advance to kernel line */
8222 lp = lp->next; /* advance to kernel line */
8240 if (kernel &&
8241 (!check_cmd(lp->cmd, KERNEL_CMD, lp->arg, kernel))) {
8244 strcmp(kernel, DIRECT_BOOT_FAILSAFE_LINE) != 0)
8250 BAM_DPRINTF(("%s: kernel match: %s, %s\n", fcn,
8251 kernel, lp->arg));
8292 char *kernel, char *mod_kernel, char *module, int root_opt)
8303 ent = find_boot_entry(mp, NULL, kernel, findroot, root, module,
8307 * We may be upgrading a kernel from multiboot to
8327 kernel, mod_kernel, module, NULL));
8366 /* kernel line */
8376 kernel, params+2);
8380 kernel);
8391 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8403 kernel);
8408 lp->arg = s_strdup(kernel);
8411 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8412 fcn, kernel));
8611 * failsafe may be different than the installed kernel.
8626 /* Figure out where the kernel line should point */
8888 * # reboot /platform/i86pc/kernel/unix
8893 * # reboot "/platform/i86pc/kernel/unix -kd"
8922 * follow a space. If someone sends us a kernel path
8970 bam_print_stderr(_("Rebooting with default kernel "
9095 * partial_path may be anything like "kernel/unix" or "kmdb". Try to
9111 /* First, try the simplest case - something like "kernel/unix" */
9141 "/platform/i86pc/kernel/%s/$ISADIR/unix",
9154 * The kernel cmd and arg have been changed, so
9218 * If path is NULL, return the kernel (optnum == KERNEL_CMD) or arguments
9221 * string, set the kernel or arguments.
9263 optnum == KERNEL_CMD ? "kernel" : "args");
9299 bam_error(_("no kernel line found in entry %d\n"),
9326 * We need to print the kernel, so we just turn the
9328 * We don't print anything if it's the default kernel.
9358 * kernel command, and the args is already empty, or if we're
9359 * resetting the args command, and the kernel is already the
9392 * We have changed the kernel line, so we may need
9396 BAM_DPRINTF(("%s: reset kernel to default, but "
9401 * we only need to copy the kernel. We've already
9402 * checked that the kernel is not the default.
9410 "old kernel: %s\n", fcn, kernelp->arg));
9417 * Expand the kernel file to a full path, if necessary
9487 BAM_DPRINTF(("%s: new kernel=%s\n", fcn,
9493 BAM_DPRINTF(("%s: new kernel=%s\n", fcn,
9549 * If we have changed the kernel line, we may need to update
9553 BAM_DPRINTF(("%s: rc line exists, replaced kernel, same "
9563 BAM_DPRINTF(("%s: rc line exists, same kernel, but new "
9636 * kernel and args are allowed without "=new_value" strings. All