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:
1080ce6
)
dracut: don't skip zero-length string outfile argument
author
Amadeusz Żołnowski
<aidecoe@aidecoe.name>
Mon, 28 Mar 2011 23:21:56 +0000
(
01:21
+0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 29 Mar 2011 08:52:50 +0000
(10:52 +0200)
When '' was passed as outfile, dracut generated name with following
pattern:
/boot/initramfs-$kernel
With commit
486a1b9324d6fc7bc534d8147d64b8b259692c46
dracut skips ''
argument.
dracut
patch
|
blob
|
history
diff --git
a/dracut
b/dracut
index
6b67dc0
..
c16b222
100755
(executable)
--- a/
dracut
+++ b/
dracut
@@
-237,7
+237,7
@@
while (($# > 0)); do
;;
-*) printf "\nUnknown option: %s\n\n" "$1" >&2; usage; exit 1;;
*)
- if ! [[ $
outfile
]]; then
+ if ! [[ $
{outfile+x}
]]; then
outfile=$1
elif [[ $kernel = "unset" ]]; then
kernel=$1