Blame 0016-lsinitrd.sh-simplify-check-for-boot-loader-spec-dirs.patch

Harald Hoyer 22a1cb
From d26bd6ca55c96e06d614fc9d5ad73dc6d83d5438 Mon Sep 17 00:00:00 2001
Harald Hoyer 22a1cb
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 22a1cb
Date: Wed, 13 Mar 2013 08:23:18 +0100
Harald Hoyer 22a1cb
Subject: [PATCH] lsinitrd.sh: simplify check for boot loader spec dirs
Harald Hoyer 22a1cb
Harald Hoyer 22a1cb
---
Harald Hoyer 22a1cb
 lsinitrd.sh | 2 +-
Harald Hoyer 22a1cb
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 22a1cb
Harald Hoyer 22a1cb
diff --git a/lsinitrd.sh b/lsinitrd.sh
Harald Hoyer 22a1cb
index 5cd8c2a..1b27393 100755
Harald Hoyer 22a1cb
--- a/lsinitrd.sh
Harald Hoyer 22a1cb
+++ b/lsinitrd.sh
Harald Hoyer 22a1cb
@@ -57,7 +57,7 @@ if [[ "$1" ]]; then
Harald Hoyer 22a1cb
 else
Harald Hoyer 22a1cb
     [[ -f /etc/machine-id ]] && read MACHINE_ID < /etc/machine-id
Harald Hoyer 22a1cb
 
Harald Hoyer 22a1cb
-    if [[ $MACHINE_ID ]] && ( [[ -d /boot/${MACHINE_ID} ]] || [[ -L /boot/${MACHINE_ID} ]] ); then
Harald Hoyer 22a1cb
+    if [[ $MACHINE_ID ]] && [[ -d /boot/${MACHINE_ID} || -L /boot/${MACHINE_ID} ]] ; then
Harald Hoyer 22a1cb
         image="/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd"
Harald Hoyer 22a1cb
     else
Harald Hoyer 22a1cb
         image="/boot/initramfs-${KERNEL_VERSION}.img"