From 8792242180bc10eb9e72023e031e6172891ed9de Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Fri, 8 Feb 2008 19:32:13 -0300 Subject: [PATCH] Improved mkinitrd to install mdadm and lvm if found. --- base/mkinitrd/mkinitrd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/mkinitrd/mkinitrd.sh b/base/mkinitrd/mkinitrd.sh index 3618b73f0..846192762 100644 --- a/base/mkinitrd/mkinitrd.sh +++ b/base/mkinitrd/mkinitrd.sh @@ -126,8 +126,12 @@ cp -ar ${root}/lib/udev/* $tmpdir/lib/udev/ # 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 + if [ ! -x $x ]; then + echo "Warning: $x is not available." + continue + fi # sanity check file $x | grep -q "dynamically linked" && echo "Warning: $x is dynamically linked!"