Changeset 10982 in hybrid for branches/releng-9.0/nanobsd/tools
- Timestamp:
- May 22, 2012, 9:29:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/tools/image
r10871 r10982 45 45 sleep $prompt_timeout 46 46 47 # Details and alive checkings 47 48 ssh $host mount || exit 1 49 P=`ssh $HOST df / | grep '1a ' && echo "p2" || echo "p1"` || exit 1 50 echo "# Updating partition $P" 51 52 cat $img | ssh $host sh -x /tools/update$P || exit 1 53 48 54 # Hack to make sure we update the fstab the right way when converting from 49 55 # 8.X-RELEASE to 9.X-RELEASE. ad0 naming changed to ada0. 50 ssh $HOST 'echo NANO_DRIVE=ada0 > /etc/nanobsd.conf' || exit 1 51 cat $img | ssh $host /tools/update || exit 1 56 if [ "$P" = "p2" ]; then 57 ssh $HOST sed -i "" "s/ada0s1/ada0s2/" /mnt/conf/base/etc/fstab /mnt/etc/fstab || exit 1 58 fi 59 52 60 if $do_reboot; then 53 61 ssh $host reboot
Note:
See TracChangeset
for help on using the changeset viewer.