Skip to content

Commit 23c5029

Browse files
committed
improve logging, move banner var definition to banner file
Signed-off-by: Zen <[email protected]>
1 parent 71b3940 commit 23c5029

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/ugrd/base/banner.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ banner = 'einfo "UGRD v$(readvar VERSION)"'
22

33
[imports.init_pre]
44
"ugrd.base.banner" = [ "print_banner" ]
5+
6+
[custom_parameters]
7+
banner = "str" # Banner string to be printed at the start of init

src/ugrd/base/core.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,3 @@ out_dir = "Path" # The directory where the initramfs is packed/output. If no pa
7272
out_file = "str" # The name of the output file, if absolute, overrids out dir with the path, and sets out_file to the filename
7373
old_count = "int" # The number of times to cycle old files before deleting
7474
clean = "bool" # Add the clean property, used to define if the mounts should be cleaned up after boot
75-
banner = "str" # Banner string to be printed at the start of init

src/ugrd/initramfs_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def generate_init_main(self) -> list[str]:
167167

168168
def generate_init(self) -> None:
169169
""" Generates the init file. """
170-
self.logger.info("Running init generator functions")
170+
self._log_run("Generating init functions")
171171
init = [self['shebang']] # Add the shebang to the top of the init file
172172

173173
# Run all included functions, so they get included

0 commit comments

Comments
 (0)