allow single drive mode to run on root disk (#15037)

for practical reasons, allow root disk based installs for single drive mode.
This commit is contained in:
Harshavardhana 2022-06-03 12:53:42 -07:00 committed by GitHub
parent fb1c333a83
commit 5afdc56796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ func newXLStorage(ep Endpoint) (s *xlStorage, err error) {
}
var rootDisk bool
if !globalIsCICD {
if !globalIsCICD && !globalIsErasureSD {
if globalRootDiskThreshold > 0 {
// Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if
// this disk is a root disk.