Print this page
botadm patch


 109  * Menu related
 110  * menu_cmd_t and menu_cmds must be kept in sync
 111  *
 112  * The *_DOLLAR_CMD values must be 1 greater than the
 113  * respective [KERNEL|MODULE]_CMD values.
 114  */
 115 typedef enum {
 116         DEFAULT_CMD = 0,
 117         TIMEOUT_CMD,
 118         TITLE_CMD,
 119         ROOT_CMD,
 120         KERNEL_CMD,
 121         KERNEL_DOLLAR_CMD,      /* Must be KERNEL_CMD + 1 */
 122         MODULE_CMD,
 123         MODULE_DOLLAR_CMD,      /* Must be MODULE_CMD + 1 */
 124         SEP_CMD,
 125         COMMENT_CMD,
 126         CHAINLOADER_CMD,
 127         ARGS_CMD,
 128         FINDROOT_CMD,
 129         BOOTFS_CMD

 130 } menu_cmd_t;
 131 
 132 extern char *menu_cmds[];
 133 
 134 /* For multi- or direct-boot */
 135 typedef enum {
 136         BAM_DIRECT_NOT_SET,
 137         BAM_DIRECT_MULTIBOOT,
 138         BAM_DIRECT_DBOOT
 139 } direct_or_multi_t;
 140 
 141 /* Is there a hypervisor present? */
 142 typedef enum {
 143         BAM_HV_UNKNOWN,
 144         BAM_HV_NO,
 145         BAM_HV_PRESENT
 146 } hv_t;
 147 
 148 /* Is there findroot capability present ? */
 149 typedef enum {


 200  * the comment strings - there will be other text before them.
 201  */
 202 #define BAM_LU_HDR      " - ADDED BY LIVE UPGRADE - DO NOT EDIT  -----"
 203 #define BAM_LU_FTR      " -------------- END LIVE UPGRADE ------------"
 204 
 205 #define BAM_OLDDEF      "BOOTADM SAVED DEFAULT: "
 206 #define BAM_OLD_RC_DEF  "BOOTADM RC SAVED DEFAULT: "
 207 
 208 /*
 209  * menu.lst comment created by libbe
 210  */
 211 #define BAM_LIBBE_FTR   "============ End of LIBBE entry ============="
 212 
 213 /* Title used for failsafe entries */
 214 #define FAILSAFE_TITLE  "Solaris failsafe"
 215 
 216 /* Title used for hv entries */
 217 #define NEW_HV_ENTRY    "Solaris xVM"
 218 
 219 /* ZFS boot option */
 220 #define ZFS_BOOT        "-B $ZFS-BOOTFS"
 221 
 222 /* multiboot */
 223 #define MULTI_BOOT      "/platform/i86pc/multiboot"
 224 #define MULTI_BOOT_FAILSAFE     "/boot/multiboot"
 225 #define MULTI_BOOT_FAILSAFE_UNIX        "kernel/unix"
 226 #define MULTI_BOOT_FAILSAFE_LINE        "/boot/multiboot kernel/unix -s"
 227 
 228 /* directboot kernels */
 229 #define DIRECT_BOOT_32  "/platform/i86pc/kernel/unix"
 230 #define DIRECT_BOOT_64  "/platform/i86pc/kernel/amd64/unix"
 231 #define DIRECT_BOOT_KERNEL      "/platform/i86pc/kernel/$ISADIR/unix"
 232 #define DIRECT_BOOT_FAILSAFE_32 "/boot/platform/i86pc/kernel/unix"
 233 #define DIRECT_BOOT_FAILSAFE_64 "/boot/platform/i86pc/kernel/amd64/unix"
 234 #define DIRECT_BOOT_FAILSAFE_KERNEL \
 235         "/boot/platform/i86pc/kernel/$ISADIR/unix"
 236 #define DIRECT_BOOT_FAILSAFE_LINE       DIRECT_BOOT_FAILSAFE_KERNEL " -s"
 237 #define DIRECT_BOOT_KERNEL_ZFS  DIRECT_BOOT_KERNEL " " ZFS_BOOT
 238 #define DIRECT_BOOT_PREFIX      "/platform/i86pc/"
 239 #define KERNEL_PREFIX   "/platform/i86pc/"
 240 #define AMD_UNIX_SPACE  "/amd64/unix "




 109  * Menu related
 110  * menu_cmd_t and menu_cmds must be kept in sync
 111  *
 112  * The *_DOLLAR_CMD values must be 1 greater than the
 113  * respective [KERNEL|MODULE]_CMD values.
 114  */
 115 typedef enum {
 116         DEFAULT_CMD = 0,
 117         TIMEOUT_CMD,
 118         TITLE_CMD,
 119         ROOT_CMD,
 120         KERNEL_CMD,
 121         KERNEL_DOLLAR_CMD,      /* Must be KERNEL_CMD + 1 */
 122         MODULE_CMD,
 123         MODULE_DOLLAR_CMD,      /* Must be MODULE_CMD + 1 */
 124         SEP_CMD,
 125         COMMENT_CMD,
 126         CHAINLOADER_CMD,
 127         ARGS_CMD,
 128         FINDROOT_CMD,
 129         BOOTFS_CMD,
 130         KERNEL_OPTIONS_CMD,
 131 } menu_cmd_t;
 132 
 133 extern char *menu_cmds[];
 134 
 135 /* For multi- or direct-boot */
 136 typedef enum {
 137         BAM_DIRECT_NOT_SET,
 138         BAM_DIRECT_MULTIBOOT,
 139         BAM_DIRECT_DBOOT
 140 } direct_or_multi_t;
 141 
 142 /* Is there a hypervisor present? */
 143 typedef enum {
 144         BAM_HV_UNKNOWN,
 145         BAM_HV_NO,
 146         BAM_HV_PRESENT
 147 } hv_t;
 148 
 149 /* Is there findroot capability present ? */
 150 typedef enum {


 201  * the comment strings - there will be other text before them.
 202  */
 203 #define BAM_LU_HDR      " - ADDED BY LIVE UPGRADE - DO NOT EDIT  -----"
 204 #define BAM_LU_FTR      " -------------- END LIVE UPGRADE ------------"
 205 
 206 #define BAM_OLDDEF      "BOOTADM SAVED DEFAULT: "
 207 #define BAM_OLD_RC_DEF  "BOOTADM RC SAVED DEFAULT: "
 208 
 209 /*
 210  * menu.lst comment created by libbe
 211  */
 212 #define BAM_LIBBE_FTR   "============ End of LIBBE entry ============="
 213 
 214 /* Title used for failsafe entries */
 215 #define FAILSAFE_TITLE  "Solaris failsafe"
 216 
 217 /* Title used for hv entries */
 218 #define NEW_HV_ENTRY    "Solaris xVM"
 219 
 220 /* ZFS boot option */
 221 #define ZFS_BOOT        "-B $ZFS_BOOTFS"
 222 
 223 /* multiboot */
 224 #define MULTI_BOOT      "/platform/i86pc/multiboot"
 225 #define MULTI_BOOT_FAILSAFE     "/boot/multiboot"
 226 #define MULTI_BOOT_FAILSAFE_UNIX        "kernel/unix"
 227 #define MULTI_BOOT_FAILSAFE_LINE        "/boot/multiboot kernel/unix -s"
 228 
 229 /* directboot kernels */
 230 #define DIRECT_BOOT_32  "/platform/i86pc/kernel/unix"
 231 #define DIRECT_BOOT_64  "/platform/i86pc/kernel/amd64/unix"
 232 #define DIRECT_BOOT_KERNEL      "/platform/i86pc/kernel/$ISADIR/unix"
 233 #define DIRECT_BOOT_FAILSAFE_32 "/boot/platform/i86pc/kernel/unix"
 234 #define DIRECT_BOOT_FAILSAFE_64 "/boot/platform/i86pc/kernel/amd64/unix"
 235 #define DIRECT_BOOT_FAILSAFE_KERNEL \
 236         "/boot/platform/i86pc/kernel/$ISADIR/unix"
 237 #define DIRECT_BOOT_FAILSAFE_LINE       DIRECT_BOOT_FAILSAFE_KERNEL " -s"
 238 #define DIRECT_BOOT_KERNEL_ZFS  DIRECT_BOOT_KERNEL " " ZFS_BOOT
 239 #define DIRECT_BOOT_PREFIX      "/platform/i86pc/"
 240 #define KERNEL_PREFIX   "/platform/i86pc/"
 241 #define AMD_UNIX_SPACE  "/amd64/unix "