Changeset eee006a


Ignore:
Timestamp:
05/06/14 08:40:00 (14 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
eaea8ff
Parents:
3305db9
Message:

Auto-create new Boot-Environments before doing system updates
and package updates. Still need to add the pruning bits

Location:
src-sh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-sh/libsh/functions.sh

    rbcf5744 reee006a  
    651651  rm ${TMPRCLOG} 
    652652} 
     653 
     654create_auto_beadm() 
     655{ 
     656  if [ -n "$NOBEADM" ] ; then return; fi 
     657  beadm create beforeUpdate-`date "+%Y-%m-%d_%H-%M-%S"` 
     658  if [ $? -ne 0 ] ; then 
     659     echo "WARNING: Unable to create a new boot-enviroment!" 
     660     sleep 10 
     661     return 
     662  fi 
     663 
     664  # Check if we need to prune any BEs 
     665  # TODO 
     666 
     667} 
  • src-sh/pc-updatemanager/pc-updatemanager

    r3305db9 reee006a  
    801801 
    802802  # Lets auto-create a new boot-environment before updating 
    803   if [ -z "$NOBEADM" ] ; then 
    804     beadm create ${SYSVER}-beforeUpdate 
    805     if [ $? -ne 0 ] ; then 
    806        echo "WARNING: Unable to create a new boot-enviroment!" 
    807        sleep 10 
    808     fi 
    809   fi 
     803  create_auto_beadm 
    810804 
    811805  # Build a list of *all* package origins 
     
    10361030  if [ $? -ne 0 ] ; then 
    10371031     exit 1 
     1032  fi 
     1033 
     1034  # Create a new boot-environment before doing the pkg update 
     1035  if [ -z "$INJAIL" ] ; then 
     1036     create_auto_beadm 
    10381037  fi 
    10391038 
Note: See TracChangeset for help on using the changeset viewer.