Browse Source

only install /etc/modprobe.d for hostonly

master
Harald Hoyer 13 years ago
parent
commit
8714280104
  1. 4
      modules.d/90kernel-modules/module-setup.sh
  2. 1
      modules.d/95nfs/module-setup.sh

4
modules.d/90kernel-modules/module-setup.sh

@ -69,8 +69,8 @@ installkernel() { @@ -69,8 +69,8 @@ installkernel() {
}

install() {
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
dracut_install -o /{etc,lib}/modprobe.d/*.conf
dracut_install -o /lib/modprobe.d/*.conf
[[ $hostonly ]] && dracut_install -o /etc/modprobe.d/*.conf /etc/modprobe.conf
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
}

1
modules.d/95nfs/module-setup.sh

@ -38,6 +38,7 @@ install() { @@ -38,6 +38,7 @@ install() {
if [ -f /lib/modprobe.d/nfs.conf ]; then
dracut_install /lib/modprobe.d/nfs.conf
else
[ -d $initdir/etc/modprobe.d/ ] || mkdir $initdir/etc/modprobe.d
echo "alias nfs4 nfs" > $initdir/etc/modprobe.d/nfs.conf
fi


Loading…
Cancel
Save