Lines Matching defs:kernel

175 	"kernel",	/* KERNEL_CMD */
176 "kernel$", /* KERNEL_DOLLAR_CMD */
1480 * end of the kernel$ string the routine to enable the
2936 * in boot based on presence/absence of a kernel module.
4617 BAM_DPRINTF(("%s: not a kernel command: %s\n", fcn, cmd));
4663 BAM_DPRINTF(("%s: is HAND kernel flag: %s\n", fcn, arg));
4672 BAM_DPRINTF(("%s: is UNKNOWN kernel entry: %s\n", fcn, arg));
4673 bam_error(_("kernel command on line %d not recognized.\n"),
5168 char *kernel,
5191 if (kernel == NULL) {
5202 /* Figure the commands out from the kernel line */
5203 if (strstr(kernel, "$ISADIR") != NULL) {
5205 } else if (strstr(kernel, "amd64") != NULL) {
5248 menu_cmds[k_cmd], menu_cmds[SEP_CMD], kernel);
8397 * - Else, match on root/findroot, kernel, and module.
8405 char *kernel,
8465 lp = lp->next; /* advance to kernel line */
8481 lp = lp->next; /* advance to kernel line */
8499 if (kernel &&
8500 (!check_cmd(lp->cmd, KERNEL_CMD, lp->arg, kernel))) {
8503 strcmp(kernel, DIRECT_BOOT_FAILSAFE_LINE) != 0)
8509 BAM_DPRINTF(("%s: kernel match: %s, %s\n", fcn,
8510 kernel, lp->arg));
8551 char *kernel, char *mod_kernel, char *module, int root_opt)
8562 ent = find_boot_entry(mp, NULL, kernel, findroot, root, module,
8566 * We may be upgrading a kernel from multiboot to
8586 kernel, mod_kernel, module, NULL));
8625 /* kernel line */
8635 kernel, params+2);
8639 kernel);
8650 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8662 kernel);
8667 lp->arg = s_strdup(kernel);
8670 BAM_DPRINTF(("%s: adding new kernel$ line: %s\n",
8671 fcn, kernel));
8870 * failsafe may be different than the installed kernel.
8885 /* Figure out where the kernel line should point */
9147 * # reboot /platform/i86pc/kernel/unix
9152 * # reboot "/platform/i86pc/kernel/unix -kd"
9181 * follow a space. If someone sends us a kernel path
9229 bam_print_stderr(_("Rebooting with default kernel "
9354 * partial_path may be anything like "kernel/unix" or "kmdb". Try to
9370 /* First, try the simplest case - something like "kernel/unix" */
9400 "/platform/i86pc/kernel/%s/$ISADIR/unix",
9413 * The kernel cmd and arg have been changed, so
9477 * If path is NULL, return the kernel (optnum == KERNEL_CMD) or arguments
9480 * string, set the kernel or arguments.
9522 optnum == KERNEL_CMD ? "kernel" : "args");
9558 bam_error(_("no kernel line found in entry %d\n"),
9585 * We need to print the kernel, so we just turn the
9587 * We don't print anything if it's the default kernel.
9617 * kernel command, and the args is already empty, or if we're
9618 * resetting the args command, and the kernel is already the
9651 * We have changed the kernel line, so we may need
9655 BAM_DPRINTF(("%s: reset kernel to default, but "
9660 * we only need to copy the kernel. We've already
9661 * checked that the kernel is not the default.
9669 "old kernel: %s\n", fcn, kernelp->arg));
9676 * Expand the kernel file to a full path, if necessary
9746 BAM_DPRINTF(("%s: new kernel=%s\n", fcn,
9752 BAM_DPRINTF(("%s: new kernel=%s\n", fcn,
9808 * If we have changed the kernel line, we may need to update
9812 BAM_DPRINTF(("%s: rc line exists, replaced kernel, same "
9822 BAM_DPRINTF(("%s: rc line exists, same kernel, but new "
9895 * kernel and args are allowed without "=new_value" strings. All