From 47f9472950fa51f48cbe610549e00fb05246922c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 15 Dec 2016 17:46:06 +0100 Subject: gpt-auto-generator: drop duplicate container check We already check for containers early in main(), no need to do this check again. --- src/gpt-auto-generator/gpt-auto-generator.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/gpt-auto-generator') diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index e506f39521..872b654ad8 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -463,11 +463,6 @@ static int add_esp(const char *what) { return 0; } - if (detect_container() > 0) { - log_debug("In a container, ignoring the ESP."); - return 0; - } - /* If /efi exists we'll use that. Otherwise we'll use /boot, as that's usually the better choice */ esp = access("/efi/", F_OK) >= 0 ? "/efi" : "/boot"; -- cgit v1.2.3