From 3549f8259a9fb7a5e9afe6b42b3c5a5a78d92029 Mon Sep 17 00:00:00 2001 From: Tyler Fanelli Date: Thu, 16 Apr 2026 22:12:41 -0400 Subject: [PATCH] init/aws-nitro: Continue if module already loaded If a module is already loaded, then the initramfs can continue on loading other modules. Although returning an error, this does not require failure of the initramfs. Signed-off-by: Tyler Fanelli --- init/aws-nitro/mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/aws-nitro/mod.c b/init/aws-nitro/mod.c index 03a1c0159..b186c8c42 100644 --- a/init/aws-nitro/mod.c +++ b/init/aws-nitro/mod.c @@ -35,7 +35,7 @@ static int mod_load(const char *path) } ret = finit_module(fd, "", 0); - if (ret < 0) { + if (ret < 0 && errno != EEXIST) { close(fd); fprintf(stderr, "init module %s (errno %d)\n", path, errno); return -errno;