Blame 0028-fstab-generator-read-rd.fstab-on-off-switch-correctl.patch
|
Harald Hoyer |
fe20ad |
From 81e19a8767e4347df71a2874e724e50b43ee930d Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
fe20ad |
From: WANG Chao <chaowang@redhat.com>
|
|
Harald Hoyer |
fe20ad |
Date: Fri, 9 Aug 2013 17:01:50 +0800
|
|
Harald Hoyer |
fe20ad |
Subject: [PATCH] fstab-generator: read rd.fstab=on/off switch correctly
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
---
|
|
Harald Hoyer |
fe20ad |
src/fstab-generator/fstab-generator.c | 4 ++--
|
|
Harald Hoyer |
fe20ad |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
|
|
Harald Hoyer |
fe20ad |
index 87b17cd..5a2074e 100644
|
|
Harald Hoyer |
fe20ad |
--- a/src/fstab-generator/fstab-generator.c
|
|
Harald Hoyer |
fe20ad |
+++ b/src/fstab-generator/fstab-generator.c
|
|
Harald Hoyer |
fe20ad |
@@ -600,9 +600,9 @@ static int parse_proc_cmdline(void) {
|
|
Harald Hoyer |
fe20ad |
} else if (startswith(word, "rd.fstab=")) {
|
|
Harald Hoyer |
fe20ad |
|
|
Harald Hoyer |
fe20ad |
if (in_initrd()) {
|
|
Harald Hoyer |
fe20ad |
- r = parse_boolean(word + 6);
|
|
Harald Hoyer |
fe20ad |
+ r = parse_boolean(word + 9);
|
|
Harald Hoyer |
fe20ad |
if (r < 0)
|
|
Harald Hoyer |
fe20ad |
- log_warning("Failed to parse fstab switch %s. Ignoring.", word + 6);
|
|
Harald Hoyer |
fe20ad |
+ log_warning("Failed to parse fstab switch %s. Ignoring.", word + 9);
|
|
Harald Hoyer |
fe20ad |
else
|
|
Harald Hoyer |
fe20ad |
arg_enabled = r;
|
|
Harald Hoyer |
fe20ad |
}
|