All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Chao Fan <cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] remove the incomplete .img file
Date: Wed, 2 Sep 2015 13:23:18 +0200	[thread overview]
Message-ID: <55E6DC26.4080506@redhat.com> (raw)
In-Reply-To: <1437470322-992-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 21.07.2015 11:18, Chao Fan wrote:
> 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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  dracut.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dracut.sh b/dracut.sh
> index ee0a039..122ae0c 100755
> --- a/dracut.sh
> +++ b/dracut.sh
> @@ -1651,6 +1651,7 @@ if ! (
>              | $compress >> "$outfile"
>      ); then
>      dfatal "dracut: creation of $outfile failed"
> +	rm -f $outfile
>      exit 1
>  fi
>  dinfo "*** Creating initrd image file '$outfile' done ***"
> 

Thanks! Merged, despite the <tab>.

      parent reply	other threads:[~2015-09-02 11:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21  9:18 [PATCH] remove the incomplete .img file Chao Fan
     [not found] ` <1437470322-992-1-git-send-email-cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-07-21 10:05   ` Dracut GitHub Import Bot
2015-09-02 11:23   ` Harald Hoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55E6DC26.4080506@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=cfan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.