>> Background: I want to check if there is a loaded cciss module and thus
>> setting the install disk to /dev/cciss/c0d0 if not the install disk
>> should be /dev/sda.
>
> list-harddrives might also help there, as long as the cciss devices have
> the 'cciss' in their path.  IIRC this will or has als been changed, they
> will appear as sdX then.
> /proc/devices might also be of help.

Also why not just use bash to test if /dev/cciss/c0d0 is there, and if
so use it, otherwise default to sda or something else?

if [ -b /dev/cciss/c0d0 ]; then
  disk="cciss/c0d0"
else
  disk="sda"
fi
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to