gpt-auto-generator: drop duplicate container check

We already check for containers early in main(), no need to do this
check again.
This commit is contained in:
Lennart Poettering 2016-12-15 17:46:06 +01:00
parent e0f9e7bd03
commit 47f9472950

View 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";