phase1: treat "kmod_archive" as bool option
authorJo-Philipp Wich <jo@mein.io>
Sat, 7 Nov 2020 19:31:36 +0000 (20:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 7 Nov 2020 19:32:36 +0000 (20:32 +0100)
Fixes: 9ad60fa ("phase1: add config option to enable/disable kmod archive")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index 547633d6c171b80b4da5d6a1f12023115b116c7c..74866e2a14b1eb079631780b3c9b0c7bef5e9d34 100644 (file)
@@ -192,7 +192,7 @@ if ini.has_option("usign", "comment"):
 enable_kmod_archive = False
 
 if ini.has_option("phase1", "kmod_archive"):
-       enable_kmod_archive = (ini.getint("phase1", "kmod_archive") == 1)
+       enable_kmod_archive = ini.getboolean("phase1", "kmod_archive")
 
 
 # find targets