From 52eed26853aa0e9252a997b344001e80709da50a Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 24 Mar 2011 11:30:23 +0100 Subject: [PATCH] dracut: fixed directory handling, if image is created in "/" --- dracut | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3