summaryrefslogtreecommitdiffstats
path: root/src/gpt-auto-generator
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
parentdissect: make using a generic partition as root partition optional (diff)
downloadsystemd-47f9472950fa51f48cbe610549e00fb05246922c.tar.xz
systemd-47f9472950fa51f48cbe610549e00fb05246922c.zip
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')
-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";