From 8aba31240078aa1b4a7621715615743a73c9881f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 3 Feb 2011 20:45:43 +0200 Subject: Avoid some unnecessary stat calls. --- systemd/fedora-storage-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd') diff --git a/systemd/fedora-storage-init b/systemd/fedora-storage-init index b01a4657..7f439bd9 100755 --- a/systemd/fedora-storage-init +++ b/systemd/fedora-storage-init @@ -31,7 +31,7 @@ if ! strstr "$cmdline" nodmraid && [ -x /sbin/dmraid ]; then fi # Start any MD RAID arrays that haven't been started yet -[ -r /proc/mdstat -a -r /dev/md/md-device-map ] && /sbin/mdadm -IRs +[ -r /proc/mdstat ] && [ -r /dev/md/md-device-map ] && /sbin/mdadm -IRs if [ -x /sbin/lvm ]; then action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y --sysinit -- cgit v1.2.1