mirror of
https://github.com/systemd/systemd
synced 2024-10-07 08:40:44 +00:00
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:
parent
e0f9e7bd03
commit
47f9472950
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue