]> git.ipfire.org Git - thirdparty/dracut.git/commit
remove the incomplete .img file 91/head
authorChao Fan <cfan@redhat.com>
Tue, 21 Jul 2015 09:18:42 +0000 (17:18 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 21 Jul 2015 10:05:42 +0000 (12:05 +0200)
commit7eeaa4ab146907eb56bc03d4aeba1feea8357c1e
tree97ca74155c40ed10091a1a859e671ff179438836
parentf4d64d55ea825ec0d05aaa76d58cddc37d44f719
remove the incomplete .img file

If the directory where the .img file is saved has no enough space, or in
other wrong conditions, dracut will get an incomplete file xxx.img. But
sometimes this .img file will be loaded when rebooting the system. And then
some bugs will happen because this .img file is wrong.

So I think dracut should remove the incomplete file because this .img file
with problems was made by dracut. And then the wrong file will not be loaded
anymore.

Signed-off-by: Chao Fan <cfan@redhat.com>
dracut.sh