Changeset 13171 in hybrid
- Timestamp:
- Feb 17, 2015, 9:53:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-10/nanobsd/tools/image
r11056 r13171 40 40 41 41 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" 43 43 p_warn "You will need to type the root password at least twice, consider using a key" 44 44 $do_reboot && p_warn "AND will REBOOT the $host" … … 50 50 echo "# Trying to connect to $host" 51 51 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 56 59 # Hack to make sure we update the fstab the right way when converting from 57 60 # 8.X-RELEASE to 9.X-RELEASE. ad0 naming changed to ada0, secondly an … … 82 85 cat $command | ssh $host "cat > $command" || exit 1 83 86 cat $img | ssh $host "sh $command" || exit 1 87 else 88 cat $img | ssh $host /tools/update || exit 1 84 89 fi 85 90
Note:
See TracChangeset
for help on using the changeset viewer.