[EMAIL PROTECTED] wrote on 05/13/2008 02:00:19 PM:

> I think I'm getting more confused with each new thing I learn.  I 
> appreciate your help so far, and I understand a bit more of what's going 

> on now.  But things are still not working the way I'd like them to.


OK, I think I'm making progress.  It seems the following line in 
oscarimage.master is used to determine which of the devices is a CD-Rom.
  cdroms=`cat /proc/sys/dev/cdrom/info 2>/dev/null | sed -ne "s/^drive 
name:[[:space:]]*//p"`

On my system $cdrom expands to "sr0" not "sda" which is derived out of 
/proc/sys/dev/cdrom/info

Then further on in the script is

      for dev in `cat $diskfile | sed -ne "s/.*\($type[a-z]\+\).*/\1/p" | 
sort -u` ; do
        skip=0
        for cdrom in $cdroms; do
            if [ "$dev" = "$cdrom" ]; then
                skip=1
                break
            fi
        done
        if [ $skip -eq 0 ]; then
            logmsg " $dev"
            eval DISK$DISKS=/dev/${dev}
            DISKS=`expr $DISKS + 1`
        fi
      done

which is comparing "$dev" to "$cdroms".  $dev is derived from 
/proc/diskstats which makes no mention of "sr0" at all, only "sda", "sdb", 
etc.

Is this a problem with device names being created by the SCSI driver, or 
udev, or something else entirely?  I'm getting closer, I can feel it...I 
just don't know how to proceed.


~Dale

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to