Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/milestone/devices-local
          +++ new/usr/src/cmd/svc/milestone/devices-local
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  #
  14   14  # When distributing Covered Code, include this CDDL HEADER in each
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23      -# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
       23 +# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26   26  # Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
  27   27  # All rights reserved.
  28   28  #
  29      -#
  30      -# ident "%Z%%M% %I%     %E% SMI"
  31   29  
  32   30  # Initiate the device reconfiguration process in case we need some
  33   31  # device links established so that we can successfully perform our
  34   32  # remaining standard mounts.
  35   33  
  36   34  . /lib/svc/share/smf_include.sh
  37   35  
  38   36  smf_is_globalzone || exit $SMF_EXIT_OK
  39   37  
  40   38  svcprop -q -p system/reconfigure system/svc/restarter:default
↓ open down ↓ 34 lines elided ↑ open up ↑
  75   73                          fi
  76   74                  else
  77   75                          rm -f /dev/fb
  78   76                          ln -s $1 /dev/fb
  79   77                  fi
  80   78          fi
  81   79  fi
  82   80  
  83   81  # Create any zvol devices
  84   82  if [ -x /usr/sbin/zfs ]; then
       83 +        /usr/sbin/zpool key -l -a
  85   84          /usr/sbin/zfs volinit || exit $SMF_EXIT_ERR_FATAL
  86   85          #
  87   86          # Add swap again to allow for swapping to zvols.
  88   87          #
  89   88          /sbin/swapadd
  90   89  fi
  91   90  
  92   91  exit $SMF_EXIT_OK
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX