All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] dracut-functions: get_persistent_dev() fall back to the original name
Date: Fri, 15 Aug 2014 12:37:17 +0200	[thread overview]
Message-ID: <53EDE2DD.8070409@redhat.com> (raw)
In-Reply-To: <1406557588-22484-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On 28.07.2014 16:26, WANG Chao wrote:
> In case of raw disk/partition, ex. /dev/vda1, which doesn't contain any
> filesystem on it. get_persistent_dev() would return empty. Now fix it to
> return its original name, /dev/vda1 in above case. So that we don't have
> to check its return string every time.
> 
> Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  dracut-functions.sh | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dracut-functions.sh b/dracut-functions.sh
> index 6cdfea0..b07063f 100755
> --- a/dracut-functions.sh
> +++ b/dracut-functions.sh
> @@ -388,6 +388,7 @@ get_persistent_dev() {
>              return
>          fi
>      done
> +    echo $1
>  }
>  
>  expand_persistent_dev() {
> 

pushed, but added a patch to use printf instead of echo

      parent reply	other threads:[~2014-08-15 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 14:26 [PATCH] dracut-functions: get_persistent_dev() fall back to the original name WANG Chao
     [not found] ` <1406557588-22484-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-08-15 10:37   ` 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=53EDE2DD.8070409@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=chaowang-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.