phase1: add separate option for kmod repo embedding
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Nov 2020 14:03:45 +0000 (15:03 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 13 Nov 2020 14:03:45 +0000 (15:03 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
phase1/master.cfg

index 74866e2a14b1eb079631780b3c9b0c7bef5e9d34..edc41189bc9479dc87cab7892c17ff6ac694b209 100644 (file)
@@ -190,10 +190,14 @@ if ini.has_option("usign", "comment"):
        usign_comment = ini.get("usign", "comment")
 
 enable_kmod_archive = False
+embed_kmod_repository = False
 
 if ini.has_option("phase1", "kmod_archive"):
        enable_kmod_archive = ini.getboolean("phase1", "kmod_archive")
 
+if ini.has_option("phase1", "kmod_repository"):
+       embed_kmod_repository = ini.getboolean("phase1", "kmod_repository")
+
 
 # find targets
 targets = [ ]
@@ -1006,7 +1010,7 @@ for target in targets:
                haltOnFailure = True
        ))
 
-       if enable_kmod_archive:
+       if enable_kmod_archive and embed_kmod_repository:
                # embed kmod repository. Must happen before 'images'
 
                # find rootfs staging directory