[systemd-devel] [PATCH v2] fstab-generator: read rd.fstab=on/off switch correctly

Lennart Poettering lennart at poettering.net
Fri Aug 9 09:14:58 PDT 2013


On Fri, 09.08.13 17:01, WANG Chao (chaowang at redhat.com) wrote:

Applied! Thanks!

> ---
>  src/fstab-generator/fstab-generator.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
> index 87b17cd..5a2074e 100644
> --- a/src/fstab-generator/fstab-generator.c
> +++ b/src/fstab-generator/fstab-generator.c
> @@ -600,9 +600,9 @@ static int parse_proc_cmdline(void) {
>                  } else if (startswith(word, "rd.fstab=")) {
>  
>                          if (in_initrd()) {
> -                                r = parse_boolean(word + 6);
> +                                r = parse_boolean(word + 9);
>                                  if (r < 0)
> -                                        log_warning("Failed to parse fstab switch %s. Ignoring.", word + 6);
> +                                        log_warning("Failed to parse fstab switch %s. Ignoring.", word + 9);
>                                  else
>                                          arg_enabled = r;
>                          }


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list