[PATCH v1 07/30] discover/kboot-parser: Look in /boot

Geoff Levand geoff at infradead.org
Wed Jul 25 08:15:40 AEST 2018


Other parsers look in /boot for config files, so add
it to the kboot parser.

Signed-off-by: Geoff Levand <geoff at infradead.org>
---
 discover/kboot-parser.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index bf9c5eb..62512cf 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -145,10 +145,14 @@ static const char *const kboot_conf_files[] = {
 	"/kboot.cnf",
 	"/etc/kboot.conf",
 	"/etc/kboot.cnf",
+	"/boot/kboot.conf",
+	"/boot/kboot.cnf",
 	"/KBOOT.CONF",
 	"/KBOOT.CNF",
 	"/ETC/KBOOT.CONF",
 	"/ETC/KBOOT.CNF",
+	"/BOOT/KBOOT.CONF",
+	"/BOOT/KBOOT.CNF",
 	NULL
 };
 
-- 
2.14.1




More information about the Petitboot mailing list