]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gpt-auto-generator: drop duplicate container check
authorLennart Poettering <lennart@poettering.net>
Thu, 15 Dec 2016 16:46:06 +0000 (17:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2016 18:09:30 +0000 (19:09 +0100)
We already check for containers early in main(), no need to do this
check again.

src/gpt-auto-generator/gpt-auto-generator.c

index e506f395218ac0b6af9c112aec5d509ba1664bc0..872b654ad88c2ccaad8a4c53a46f84d0a32c37fa 100644 (file)
@@ -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";