summaryrefslogtreecommitdiff
path: root/src/gpt-auto-generator/gpt-auto-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-15 17:46:06 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-21 19:09:30 +0100
commit47f9472950fa51f48cbe610549e00fb05246922c (patch)
tree3c86e1c5250e2650bf1a6420de703a5b3f0af884 /src/gpt-auto-generator/gpt-auto-generator.c
parente0f9e7bd03eebeb8fdfce7f766c4e254e3586dc8 (diff)
gpt-auto-generator: drop duplicate container check
We already check for containers early in main(), no need to do this check again.
Diffstat (limited to 'src/gpt-auto-generator/gpt-auto-generator.c')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c5
1 files changed, 0 insertions, 5 deletions
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";