Print this page
uadmin

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libc/i386/sys/uadmin.c
          +++ new/usr/src/lib/libc/i386/sys/uadmin.c
↓ open down ↓ 243 lines elided ↑ open up ↑
 244  244                                   * bother to update the temp menu entry.
 245  245                                   */
 246  246                                  if (off > 0)
 247  247                                          break;
 248  248                          }
 249  249  
 250  250                          /* are we rebooting to a GRUB menu entry? */
 251  251                          if (isdigit(bargs[0])) {
 252  252                                  int entry = strtol(bargs, NULL, 10);
 253  253                                  (void) snprintf(cmdbuf, sizeof (cmdbuf),
 254      -                                    "/sbin/bootadm set-menu %sdefault=%d",
      254 +                                    "/sbin/grubadm %s --set-default %d",
 255  255                                      altroot, entry);
 256  256                          } else {
 257  257                                  (void) snprintf(cmdbuf, sizeof (cmdbuf),
 258      -                                    "/sbin/bootadm -m update_temp %s"
 259      -                                    "-o %s%s%s", altroot, quote,
      258 +                                    "/sbin/grubadm --new --default %s"
      259 +                                    "--set-opts %s%s%s", altroot, quote,
 260  260                                      &bargs[off], quote);
 261  261                          }
 262  262                          (void) system(cmdbuf);
 263  263                  }
 264  264                  check_archive_update();
 265  265          }
 266  266          return (__uadmin(cmd, fcn, mdep));
 267  267  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX