Commit b425b951 authored by Mike Hibler's avatar Mike Hibler

Linux: only blacklist modules if /etc/modeprobe.d directory exists.

Sigh...yet another change. This one is not critical, so I didn't remake
the MFSes yet again.
parent 97f731ec
...@@ -897,18 +897,20 @@ dolinux() { ...@@ -897,18 +897,20 @@ dolinux() {
# #
# Blacklist the hp ilo stuff. # Blacklist the hp ilo stuff.
# #
modules="hpilo hpwdt" if [ -d "/mnt/etc/modprobe.d" ]; then
for mod in ${modules}; do modules="hpilo hpwdt"
grep $mod /mnt/etc/modprobe.d/blacklist.conf >/dev/null 2>&1 for mod in ${modules}; do
case $? in grep $mod /mnt/etc/modprobe.d/blacklist.conf >/dev/null 2>&1
0) case $? in
;; 0)
*) ;;
echo " blacklisting $mod" *)
echo "blacklist $mod" >> /mnt/etc/modprobe.d/blacklist.conf echo " blacklisting $mod"
;; echo "blacklist $mod" >> /mnt/etc/modprobe.d/blacklist.conf
esac ;;
done esac
done
fi
if [ -f /mnt/var/lib/random-seed -a -c /dev/urandom ]; then if [ -f /mnt/var/lib/random-seed -a -c /dev/urandom ]; then
echo " updating /var/lib/random-seed" echo " updating /var/lib/random-seed"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment