udevによるデバイス管理

はじめに

  • 個人的なLinuxに関する勉強メモです。想像の部分も多々あり。また間違いもあると思います。この情報を利用する際は、完全自己責任でお願いします。

取り急ぎ忘れない内に

  • modprobeの--ignore-installの意味について
    install modulename command...
    This is the most powerful primitive: it tells modprobe to run your command instead of inserting the module in the kernel as normal. The command can be any shell command: this allows you to do any kind of complex processing you might wish. For example, if the module "fred" works better with the module "barney" already installed (but it doesn’t depend on it, so modprobe won’t automatically load it), you could say "install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install fred", which would do what you wanted. Note the --ignore-install, which stops the second modprobe from running the same install command again. See also remove below.
  • とあるが、この意味は、
    例えば
    modprobe fred
    を実行したら、
    /sbin/modprobe barney; /sbin/modprobe --ignore-install fred
    が実行されて、barneyとfredが両方ロードされるってこと。依存関係を管理者が設定できるって事。
  • --ignore-installは、"/sbin/modprobe --ignore-install fred"が実行される時に、再度modproveの設定ファイルが読み込まれることにより、また
    install fred /sbin/modprobe barney; /sbin/modprobe --ignore-install fred
    が実行されてしまいループになってしまうから、
    同じ処理はしないように!って意味かと思われる。(2個目の"/sbin/modprobe --ignore-install fred"実行時は、"install fred"行が再度実行されない為、"/sbin/modprobe barney"は実行されず、"/sbin/modprobe fred"だけ実行されますよってことだと思う。)

  • 最終更新:2014-05-06 20:17:02

このWIKIを編集するにはパスワード入力が必要です

認証パスワード