Re: [Aoetools-discuss] install_nodev
Brought to you by:
ecashin,
elcapitansam
From: Ed L. C. <ec...@co...> - 2007-03-23 17:05:44
|
On Thu, Mar 22, 2007 at 05:06:15PM -0700, Bernard Li wrote: ... > I also have aoe-mkdevs, but that again would generate a lot of etherd > devices, which I don't want -- i just want the special ones like > discover, err, etc. If you are really having trouble with udev you can always do what it does, which is to get the right major and minor numbers out of sysfs and run mknod. for f in /sys/class/aoe/*/dev; do n=`dirname $f` n=`basename $n` awk -v name=$n -F: '{ print "mknod /dev/etherd/" name " c " $1 " " $2 }' $f done Just add " | sh" after "done" to actually run those commands instead of printing them out. -- Ed L Cashin <ec...@co...> |