Print this page
first pass

Split Close
Expand all
Collapse all
          --- old/usr/src/psm/stand/boot/sparc/common/wanboot.c
          +++ new/usr/src/psm/stand/boot/sparc/common/wanboot.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  #include <sys/types.h>
  27      -/* EXPORT DELETE START */
  28   27  #include <sys/promif.h>
  29   28  #include <sys/obpdefs.h>
  30   29  #include <sys/bootvfs.h>
  31   30  #include <sys/bootconf.h>
  32   31  #include <netinet/in.h>
  33   32  #include <sys/wanboot_impl.h>
  34   33  #include <boot_http.h>
  35   34  #include <aes.h>
  36   35  #include <des3.h>
  37   36  #include <cbc.h>
↓ open down ↓ 1542 lines elided ↑ open up ↑
1580 1579   *   options.
1581 1580   *
1582 1581   * - The wanboot filesystem (containing certificates, wanboot.conf file, etc.)
1583 1582   *   is then downloaded into the bootfs ramdisk, which is mounted for use
1584 1583   *   by OpenSSL, access to wanboot.conf, etc.
1585 1584   *
1586 1585   * - The wanboot miniroot is downloaded over http/https into the rootfs
1587 1586   *   ramdisk.  The bootfs filesystem is unmounted, and the rootfs filesystem
1588 1587   *   is booted.
1589 1588   */
1590      -/* EXPORT DELETE END */
1591 1589  /*ARGSUSED*/
1592 1590  int
1593 1591  bootprog(char *bpath, char *bargs, boolean_t user_specified_filename)
1594 1592  {
1595      -/* EXPORT DELETE START */
1596 1593          char            *miniroot_path;
1597 1594          url_t           server_url;
1598 1595          int             ret;
1599 1596  
1600 1597          if (!init_netdev(bpath)) {
1601 1598                  return (-1);
1602 1599          }
1603 1600  
1604 1601          if (!bootinfo_init()) {
1605 1602                  bootlog("wanboot", BOOTLOG_CRIT, "Cannot initialize bootinfo");
↓ open down ↓ 64 lines elided ↑ open up ↑
1670 1667          }
1671 1668  
1672 1669          /*
1673 1670           * We don't need the wanboot file system mounted anymore and
1674 1671           * should unmount it so that we can mount the miniroot.
1675 1672           */
1676 1673          (void) unmountroot();
1677 1674  
1678 1675          boot_ramdisk(RD_ROOTFS);
1679 1676  
1680      -/* EXPORT DELETE END */
1681 1677          return (0);
1682 1678  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX