diff --git a/man/smbios-type-11.xml b/man/smbios-type-11.xml
index 95754333a8..c881592722 100644
--- a/man/smbios-type-11.xml
+++ b/man/smbios-type-11.xml
@@ -88,9 +88,10 @@
io.systemd.boot.loglevel=LEVEL
- This allows configuration of the log level, and is read by systemd-boot.
- For details see
- systemd-boot7.
+ This allows configuration of the log level, and is read by
+ systemd-boot and systemd-stub. For details see
+ systemd-boot7 and
+ systemd-stub7.
diff --git a/man/systemd-stub.xml b/man/systemd-stub.xml
index 2b40c1e561..251d79ea6e 100644
--- a/man/systemd-stub.xml
+++ b/man/systemd-stub.xml
@@ -789,6 +789,16 @@
+
+
+ io.systemd.boot.loglevel
+ If set, the value of this string is used as log level. Valid values (from most to
+ least critical) are emerg, alert, crit,
+ err, warning, notice, info,
+ and debug.
+
+
+
diff --git a/src/boot/stub.c b/src/boot/stub.c
index 90f28a8ae3..7ef5a43a04 100644
--- a/src/boot/stub.c
+++ b/src/boot/stub.c
@@ -1232,6 +1232,8 @@ static EFI_STATUS run(EFI_HANDLE image) {
unsigned profile = 0;
EFI_STATUS err;
+ log_set_max_level_from_smbios();
+
err = BS->HandleProtocol(image, MAKE_GUID_PTR(EFI_LOADED_IMAGE_PROTOCOL), (void **) &loaded_image);
if (err != EFI_SUCCESS)
return log_error_status(err, "Error getting a LoadedImageProtocol handle: %m");