Changeset 11009 in hybrid


Ignore:
Timestamp:
May 26, 2012, 2:57:04 PM (12 years ago)
Author:
rick
Message:

Should be enough warnings to warn user why this many times the password needs
to be typed. Please do mind that Hybrid->Hybrid updates are much faster the
old way.

Related-To: nodefactory:ticket:188

File:
1 edited

Legend:

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

    r10982 r11009  
    4040
    4141  prompt_timeout=5
    42   p_warn "Going to DEPLOY $img to $host"
     42  p_warn "Going to DEPLOY $img to $host: (8.X-RELEASE and 9.X-RELEASE) to 9.X RELEASE"
    4343  $do_reboot && p_warn "AND will REBOOT the $host"
     44  p_warn "Please do mind to use your ssh key else you be required to type the root"
     45  p_warn "password AT LEAST 5 times"
     46
     47
    4448  p_warn "Press CTRL+C in $prompt_timeout seconds to CANCEL"
    4549  sleep $prompt_timeout
     
    5559  # 8.X-RELEASE to 9.X-RELEASE. ad0 naming changed to ada0.
    5660  if [ "$P" = "p2" ]; then
    57     ssh $HOST sed -i "" "s/ada0s1/ada0s2/" /mnt/conf/base/etc/fstab /mnt/etc/fstab || exit 1
     61    cat <<'EOF' | ssh $HOST sh -x || exit 1
     62mount -uwo noatime /dev/ad0s2a
     63sed -i "" "s/ada0s1/ada0s2/" /mnt/conf/base/etc/fstab /mnt/etc/fstab
     64umount
     65EOF
     66
    5867  fi
    5968
Note: See TracChangeset for help on using the changeset viewer.