Is there a way to get a list of loaded kernel modules in cobbler snippets?
James Cammarata
jimi at sngx.net
Sat Jul 30 14:22:07 UTC 2011
>> 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
More information about the cobbler
mailing list