Skip to content

Commit

Permalink
dracut: fix boot failure waiting for finished/dd.sh
Browse files Browse the repository at this point in the history
parse-anaconda-dd.sh was creating an (empty) /tmp/dd_todo if there was
nothing to do, but that tricked driver-updates-genrules.sh into thinking
there *was* something to do, so we time out waiting for the dd stuff to
finish.

This patch fixes that by ensuring the file is only created if there is
actually one or more tasks to complete.
  • Loading branch information
wgwoods committed Jul 9, 2015
1 parent 21135de commit e112af8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dracut/parse-anaconda-dd.sh
Expand Up @@ -25,4 +25,6 @@ for dd in $(getargs dd= inst.dd=); do
done

# for convenience's sake, mash 'em all into one list
cat /tmp/dd_net /tmp/dd_disk /tmp/dd_interactive > /tmp/dd_todo
for dd_f in /tmp/dd_interactive /tmp/dd_net /tmp/dd_disk; do
[ -f $dd_f ] && cat $dd_f >> /tmp/dd_todo
done

0 comments on commit e112af8

Please sign in to comment.