[3960] in Release_7.7_team

home help back first fref pref prev next nref lref last post

USB zip drives

daemon@ATHENA.MIT.EDU (Michal N Lusztig)
Mon Jul 28 13:30:50 2003

Message-Id: <200307281730.NAA19627@kangi.mit.edu>
To: release-team@MIT.EDU
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 28 Jul 2003 13:30:47 -0400
From: Michal N Lusztig <miki@MIT.EDU>



   I am not going to comment on the large topic : should we have USB zip drives or not.
I am going to mention that we have sometimes problems updating machines that have an USB zip drive attached to them. Last year I submitted a fix, worked in by Bob and me, and that fix was never released (it is in the .dev of sun4x_58/install-9.1/miniroot but
not in dev of   sun4x_58/install-9.1/miniroot and not in athena). Now that we (Greg and I) decided to updated 9.1 machines using a solaris8 miniroot and latter 9.2 machines using a solaris9 miniroot.. the fix for setup-swap-boot is :

rcsdiff -r1.4 -r1.3 setup-swap-boot
===================================
47,57c45
< case `uname -r` in
< 5.8)
<    (cd "$swapmount" && zcat /install/miniroot/miniroot.tar | tar xf -) || die
<    ;;
< 5.9)
<    (cd "$swapmount" && zcat /install/miniroot/sol9.miniroot.tar | tar xf -) ||
 die
<    ;;
< *) 
<    die
< esac
< 
---
> (cd "$swapmount" && zcat /install/miniroot/miniroot.tar | tar xf -) || die
70,73c58,72
< # for the time being, as the miniroot is based on Solaris8 and we are updating
 
< # Solaris8 machines we may as well copy name_to_major
< cp /etc/name_to_major "$swapmount/etc/name_to_major"
< 
---
> # Great big kludge.  Some IDE based Ultras have a "dad" device of 134
> # while others have 136.  We need the name_to_major file in the miniroot
> # to match the device number of name_to_major on the root partition, since
> # that's what drvconfig will use to create the devices in the miniroot.
> #
> # We should find a better way to do this.
> case `uname -i` in
> SUNW,UltraAX-i2)
>        cp /etc/name_to_major "$swapmount/etc/name_to_major"
>        ;;
> *)
>        dad=`awk '$1 == "dad" {print $2}' /etc/name_to_major`
>        cp -p "$swapmount/etc/name_to_major.$dad" "$swapmount/etc/name_to_major
" || die
>         ;;
> esac
75,79c74,86
< rm -rf $swapmount/dev/dsk/*
< rm -rf $swapmount/dev/rdsk/*
< (cd /dev/dsk; tar cf - . ) | (cd $swapmount/dev/dsk; tar xf - . ) || die
< (cd /dev/rdsk; tar cf - . ) | (cd $swapmount/dev/rdsk; tar xf - . ) || die
< devfsadm -r $swapmount -t $swapmount/etc/devlink.tab  || die
---
> (cd $swapmount && drvconfig -r devices "-p$swapmount/etc/path_to_inst") || die
> devlinks -r "$swapmount" || die
> disks -r "$swapmount" || die



  

Note : Anyone interested in following the history of setup




home help back first fref pref prev next nref lref last post