From: Harald Hoyer Date: Thu, 24 Mar 2011 10:30:23 +0000 (+0100) Subject: dracut: fixed directory handling, if image is created in "/" X-Git-Tag: 009~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52eed26853aa0e9252a997b344001e80709da50a;p=thirdparty%2Fdracut.git dracut: fixed directory handling, if image is created in "/" --- diff --git a/dracut b/dracut index 9ef6d613c..106bc37c8 100755 --- a/dracut +++ b/dracut @@ -424,6 +424,8 @@ if [[ -f $outfile && ! $force ]]; then fi outdir=${outfile%/*} +[[ $outdir ]] || outdir="/" + if [[ ! -d "$outdir" ]]; then dfatal "Can't write $outfile: Directory $outdir does not exist." exit 1