Browse Source

add 96insmodpost dracut module

due to popular demand, this module loads a custom kernel module, after the
first udev settle (all basic device drivers loaded)
master
Harald Hoyer 15 years ago
parent
commit
6daac70e55
  1. 5
      modules.d/96insmodpost/check
  2. 8
      modules.d/96insmodpost/insmodpost.sh
  3. 6
      modules.d/96insmodpost/install
  4. 11
      modules.d/96insmodpost/parse-insmodpost.sh

5
modules.d/96insmodpost/check

@ -0,0 +1,5 @@
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

exit 0

8
modules.d/96insmodpost/insmodpost.sh

@ -0,0 +1,8 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
. /lib/dracut-lib.sh

for p in $(getargs rdinsmodpost=); do
modprobe $p
done

6
modules.d/96insmodpost/install

@ -0,0 +1,6 @@
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

inst_hook cmdline 20 "$moddir/parse-insmodpost.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh

11
modules.d/96insmodpost/parse-insmodpost.sh

@ -0,0 +1,11 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

for p in $(getargs rdinsmodpost=); do
echo "blacklist $p" >> /etc/modprobe.d/initramfsblacklist.conf
_do_insmodpost=1
done

[ -n "$_do_insmodpost" ] && /sbin/initqueue --settled --unique --onetime /sbin/insmodpost.sh
unset _do_insmodpost
Loading…
Cancel
Save