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

Colin Guthrie gmane at colin.guthr.ie
Fri Aug 9 01:07:30 PDT 2013


'Twas brillig, and WANG Chao at 09/08/13 09:13 did gyre and gimble:
> ---
>  src/fstab-generator/fstab-generator.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
> index 87b17cd..0c31409 100644
> --- a/src/fstab-generator/fstab-generator.c
> +++ b/src/fstab-generator/fstab-generator.c
> @@ -600,7 +600,7 @@ 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);
>                                  else
> 

You need to fix it in the log_warning call too.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list