--- /etc/rc.sysinit.old 2010-08-26 14:41:27.000000000 +0200 +++ /etc/rc.sysinit 2010-08-26 14:42:00.000000000 +0200 @@ -136,7 +136,7 @@ fi # If necessary, find md devices and manually assemble RAID arrays -if [ -f /etc/mdadm.conf -a "$(/bin/grep ^ARRAY /etc/mdadm.conf 2>/dev/null)" ]; then +if [ -f /etc/mdadm.conf ] && /bin/grep -q ^ARRAY /etc/mdadm.conf; then status "Activating RAID arrays" /sbin/mdadm --assemble --scan --verbose fi @@ -155,7 +155,7 @@ fi # Set up non-root encrypted partition mappings -if [ -f /etc/crypttab -a -n "$(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$)" ]; then +if [ -f /etc/crypttab ] && /bin/grep -q ^[^#] /etc/crypttab; then /sbin/modprobe -q dm-mod 2>/dev/null stat_busy "Unlocking encrypted volumes:" csfailed=0