Browse Source

Improved mkinitrd to install mdadm and lvm if found.

boot-lvm
Alejandro Mery 17 years ago
parent
commit
8792242180
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      base/mkinitrd/mkinitrd.sh

+ 5
- 1
base/mkinitrd/mkinitrd.sh

@ -126,8 +126,12 @@ cp -ar ${root}/lib/udev/* $tmpdir/lib/udev/
# setup programs # setup programs
# #
for x in ${root}/sbin/{udevd,udevtrigger,udevsettle,modprobe,insmod} ${root}/usr/sbin/disktype
for x in ${root}/sbin/{udevd,udevtrigger,udevsettle,modprobe,insmod,mdadm,lvm} ${root}/usr/sbin/disktype
do do
if [ ! -x $x ]; then
echo "Warning: $x is not available."
continue
fi
# sanity check # sanity check
file $x | grep -q "dynamically linked" && file $x | grep -q "dynamically linked" &&
echo "Warning: $x is dynamically linked!" echo "Warning: $x is dynamically linked!"

Loading…
Cancel
Save