Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/shared/zone/uninstall.ksh
          +++ new/usr/src/lib/brand/shared/zone/uninstall.ksh
↓ open down ↓ 241 lines elided ↑ open up ↑
 242  242                  exit $ZONE_SUBPROC_FATAL
 243  243          fi
 244  244  
 245  245          eval $2="$sr_snap"
 246  246  }
 247  247  
 248  248  # find the dataset associated with $zonepath
 249  249  uninstall_get_zonepath_ds()
 250  250  {
 251  251          ZONEPATH_DS=`/sbin/zfs list -t filesystem -o name,mountpoint | \
 252      -            /bin/nawk -v zonepath=$zonepath '{
      252 +            /usr/xpg4/bin/awk -v zonepath=$zonepath '{
 253  253                  if ($2 == zonepath)
 254  254                          print $1
 255  255          }'`
 256  256  
 257  257          if [ -z "$ZONEPATH_DS" ]; then
 258  258                  # there is no $zonepath dataset
 259  259                  rm_zonepath
 260  260                  exit $ZONE_SUBPROC_OK
 261  261          fi
 262  262  }
↓ open down ↓ 458 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX