Print this page
11581 'debug' loader option is a little obscure
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Rob Johnston <rob.johnston@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/boot/sys/boot/forth/beadm.4th
          +++ new/usr/src/boot/sys/boot/forth/beadm.4th
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  \ Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  \ You may only use this file in accordance with the terms of version
   5    5  \ 1.0 of the CDDL.
   6    6  \
   7    7  \ A full copy of the text of the CDDL should have accompanied this
   8    8  \ source.  A copy of the CDDL is also available via the Internet at
   9    9  \ http://www.illumos.org/license/CDDL.
  10   10  
  11   11  \ Copyright 2017 Toomas Soome <tsoome@me.com>
  12   12  \ Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
       13 +\ Copyright 2019 Joyent, Inc.
  13   14  
  14   15  \ This module is implementing the beadm user command to support listing
  15   16  \ and switching Boot Environments (BE) from command line and
  16   17  \ support words to provide data for BE menu in loader menu system.
  17   18  \ Note: this module needs an update to provide proper BE vocabulary.
  18   19  
  19   20  only forth also support-functions also file-processing
  20   21  also file-processing definitions also parser
  21   22  also line-reading definitions also builtins definitions
  22   23  
↓ open down ↓ 216 lines elided ↑ open up ↑
 239  240          \ need to do:
 240  241          0 unload drop
 241  242          free-module-options
 242  243          \ unset the env variables with kernel arguments
 243  244          s" acpi-user-options" unsetenv
 244  245          s" boot-args" unsetenv
 245  246          s" boot_ask" unsetenv
 246  247          s" boot_single" unsetenv
 247  248          s" boot_verbose" unsetenv
 248  249          s" boot_kmdb" unsetenv
 249      -        s" boot_debug" unsetenv
      250 +        s" boot_drop_into_kmdb" unsetenv
 250  251          s" boot_reconfigure" unsetenv
 251  252          start                   \ load config, kernel and modules
 252  253          ." Current boot device: " s" currdev" getenv type cr
 253  254  ;
 254  255  
 255  256  \ beadm list [device]
 256  257  \ beadm activate BE [device] | device
 257  258  \
 258  259  \ lists BE's from current or specified device /boot/menu.lst file
 259  260  \ activates specified BE by unloading modules, setting currdev and
↓ open down ↓ 233 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX