Print this page
uadmin

@@ -249,16 +249,16 @@
 
                         /* are we rebooting to a GRUB menu entry? */
                         if (isdigit(bargs[0])) {
                                 int entry = strtol(bargs, NULL, 10);
                                 (void) snprintf(cmdbuf, sizeof (cmdbuf),
-                                    "/sbin/bootadm set-menu %sdefault=%d",
+                                    "/sbin/grubadm %s --set-default %d",
                                     altroot, entry);
                         } else {
                                 (void) snprintf(cmdbuf, sizeof (cmdbuf),
-                                    "/sbin/bootadm -m update_temp %s"
-                                    "-o %s%s%s", altroot, quote,
+                                    "/sbin/grubadm --new --default %s"
+                                    "--set-opts %s%s%s", altroot, quote,
                                     &bargs[off], quote);
                         }
                         (void) system(cmdbuf);
                 }
                 check_archive_update();