svc-allocate revision 269f47de02761bab3b7b28e2007a2bac34f629cc
951N/A# The contents of this file are subject to the terms of the 951N/A# Common Development and Distribution License (the "License"). 951N/A# You may not use this file except in compliance with the License. 951N/A# See the License for the specific language governing permissions 951N/A# and limitations under the License. 951N/A# When distributing Covered Code, include this CDDL HEADER in each 951N/A# If applicable, add the following below this CDDL HEADER, with the 951N/A# fields enclosed by brackets "[]" replaced with your own identifying 951N/A# information: Portions Copyright [yyyy] [name of copyright owner] 951N/A# Copyright (c) 1993, 2010, Oracle and/or its affiliates. All rights reserved. 951N/A# dev_allocation_convert 951N/A# All the real work gets done in this function 951N/A# If allocation already configured, just return 951N/A# Prevent automount of removable and hotpluggable volume 1029N/A<?xml version="1.0" encoding="UTF-8"?> 951N/A <match key="info.capabilities" contains="volume"> 951N/A <match key="@block.storage_device:storage.removable" bool="true"> 951N/A <merge key="volume.ignore" type="bool">true</merge> 1029N/A <match key="@block.storage_device:storage.hotpluggable" bool="true"> 1029N/A <merge key="volume.ignore" type="bool">true</merge> 1028N/A# Initialize device allocation 951N/A# Need to determine if Trusted Extensions is enabled. 951N/A# because TX is likely not yet fully active.) 951N/Agrep "^[ ]*set[ ][ ]*sys_labeling[ ]*=[ ]*1" \ 951N/A # Trusted Extensions is enabled (but possibly not yet booted). 951N/A # Turn off device allocation. 951N/A # Restore default policy for removable and hotpluggable volumes if [
"$state" =
"true" ] ;
then