Print this page
3788 /etc/bootrc is defunct and should be removed

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/krtld/kobj_bootflags.c
          +++ new/usr/src/uts/common/krtld/kobj_bootflags.c
↓ open down ↓ 53 lines elided ↑ open up ↑
  54   54                  boothowto |= RB_ASKNAME;
  55   55                  return;
  56   56          }
  57   57  
  58   58          (void) BOP_GETPROP(ops, "boot-file", kern_bootfile);
  59   59  
  60   60          cp = kern_bootargs;
  61   61  
  62   62  #if defined(_OBP)
  63   63          /*
  64      -         * x86: The boot scripts (i.e., /etc/bootrc) don't prepend the kernel
  65      -         * name to the boot arguments.  (And beware making it do so: if the
  66      -         * run-kernel command returns, it will loop, and you will end up with
  67      -         * multiple copies of the kernel name.)
       64 +         * x86: The boot scripts don't prepend the kernel name to the boot
       65 +         * arguments. (And beware making it do so: if the run-kernel command
       66 +         * returns, it will loop, and you will end up with multiple copies
       67 +         * of the kernel name.)
  68   68           */
  69   69          if (cp[0] != '-') {
  70   70                  /* if user booted kadb or kmdb, load kmdb */
  71   71                  if (cp[0] == 'k' && (cp[1] == 'a' || cp[1] == 'm') &&
  72   72                      cp[2] == 'd' && cp[3] == 'b' &&
  73   73                      (cp[4] == ' ' || cp[4] == ' ' || cp[4] == 0))
  74   74                          boothowto |= RB_KMDB;
  75   75                  SKIP_WORD(cp);          /* Skip the kernel's filename. */
  76   76          }
  77   77  #endif
↓ open down ↓ 20 lines elided ↑ open up ↑
  98   98                          boothowto |= RB_CONFIG;
  99   99                          break;
 100  100                  case 'd':
 101  101                          boothowto |= RB_DEBUGENTER;
 102  102                          break;
 103  103  #if defined(_OBP)
 104  104                  case 'D':
 105  105                  case 'F':
 106  106                          break;
 107  107                  case 'f':
 108      -                        (void)prom_setprop(prom_optionsnode(), "diag-level",
      108 +                        (void) prom_setprop(prom_optionsnode(), "diag-level",
 109  109                              (char *)params.gos_optargp,
 110  110                              params.gos_optarglen + 1);
 111  111                          break;
 112  112  #endif
 113  113                  case 'g':
 114  114                          boothowto |= RB_FORTHDEBUG;
 115  115                          break;
 116  116                  case 'G':
 117  117                          boothowto |= RB_FORTHDEBUGDBP;
 118  118                          break;
↓ open down ↓ 132 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX