projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22eb85
)
lsinitrd.sh: simplify check for boot loader spec dirs
author
Harald Hoyer
<harald@redhat.com>
Wed, 13 Mar 2013 07:23:18 +0000
(08:23 +0100)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 13 Mar 2013 08:32:14 +0000
(09:32 +0100)
lsinitrd.sh
patch
|
blob
|
history
diff --git
a/lsinitrd.sh
b/lsinitrd.sh
index
5cd8c2a
..
1b27393
100755
(executable)
--- 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"