unpack_updates_img takes one or two arguments - the image (required), and the output dir (optional, defaults to "/updates"). That should be: outdir="${2:-/updates}" Instead we had: outdir="${2:+/updates}" Which means "outdir is empty unless $2 is set, then it's /updates". Definitely not what we wanted. --- dracut/anaconda-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut/anaconda-lib.sh b/dracut/anaconda-lib.sh index a045bab..212e6b7 100755 --- a/dracut/anaconda-lib.sh +++ b/dracut/anaconda-lib.sh @@ -100,7 +100,7 @@ anaconda_auto_updates() { # Unpack an image into the given dir. unpack_updates_img() { - local img="$1" tmpdir="/tmp/${1##*/}.$$" outdir="${2:+/updates}" + local img="$1" tmpdir="/tmp/${1##*/}.$$" outdir="${2:-/updates}" # NOTE: unpack_img $img $outdir can clobber existing subdirs in $outdir, # which is why we use a tmpdir and copytree (which doesn't clobber) unpack_img $img $tmpdir -- 1.7.10.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list