Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Default timezone
"timezone" : "UTC",
+ # Kernel Commandline
+ "kernel-cmdline" : "quiet splash",
+
# Serial Console
"serial-console" : False,
"serial-console-device" : "ttyS0",
else:
conf["GRUB_TERMINAL_OUTPUT"] = "\"console\""
+ # Set the kernel commandline
+ kernel_cmdline = self.bricklayer.settings.get("kernel-cmdline")
+ if kernel_cmdline:
+ conf["GRUB_CMDLINE_LINUX"] = "\"%s\"" % kernel_cmdline
+
# Write everything to file
with self.bricklayer.open("/etc/default/grub", "w") as f:
for key, val in conf.items():