From: Harald Hoyer Date: Wed, 13 Mar 2013 07:23:18 +0000 (+0100) Subject: lsinitrd.sh: simplify check for boot loader spec dirs X-Git-Tag: 027~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d26bd6ca55c96e06d614fc9d5ad73dc6d83d5438;p=platform%2Fupstream%2Fdracut.git lsinitrd.sh: simplify check for boot loader spec dirs --- diff --git a/lsinitrd.sh b/lsinitrd.sh index 5cd8c2a..1b27393 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -57,7 +57,7 @@ if [[ "$1" ]]; then else [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id - if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then + if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then image="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd" else image="/boot/initramfs-${KERNEL_VERSION}.img"