Changeset 13171 in hybrid for branches/releng-10/nanobsd/tools


Ignore:
Timestamp:
Feb 17, 2015, 9:53:06 PM (10 years ago)
Author:
rick
Message:

Some upgrade options for 10.1-RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-10/nanobsd/tools/image

    r11056 r13171  
    4040
    4141  prompt_timeout=5
    42   p_warn "Going to DEPLOY $img to $host: (8.X-RELEASE and 9.X-RELEASE) to 9.X-RELEASE"
     42  p_warn "Going to DEPLOY $img to $host: (and 9.X-RELEASE) to 10.X-RELEASE"
    4343  p_warn "You will need to type the root password at least twice, consider using a key"
    4444  $do_reboot && p_warn "AND will REBOOT the $host"
     
    5050  echo "# Trying to connect to $host"
    5151  release=`ssh $host 'uname -r'` || exit 1
    52   echo "# Host has FreeBSD Release: $release, starting update"
    53   if [ "$release" = "9.0-RELEASE" ]; then
    54     cat $img | ssh $host /tools/update || exit 1
    55   else
     52
     53  # Release update cycle depends on the release we are coming from
     54  echo "# Host has FreeBSD Release: $release"
     55  if echo $release | grep -q '^[1234567]\.*-RELEASE'; then
     56    p_err "$release not supported for upgrade"
     57    exit 1
     58  elif echo $release | grep -q '^8\.*-RELEASE'; then
    5659    # Hack to make sure we update the fstab the right way when converting from
    5760    # 8.X-RELEASE to 9.X-RELEASE. ad0 naming changed to ada0, secondly an
     
    8285    cat $command | ssh $host "cat > $command" || exit 1
    8386    cat $img | ssh $host "sh $command" || exit 1
     87  else
     88    cat $img | ssh $host /tools/update || exit 1
    8489  fi
    8590
Note: See TracChangeset for help on using the changeset viewer.