dsp-jetpack / JetPack

Apache License 2.0
30 stars 64 forks source link

Fix handling systems without RAID controllers #693

Closed kamlesh6808 closed 2 years ago

kamlesh6808 commented 3 years ago

Systems without RAID controllers were not detected correctly and proceeded trying to configure RAID. It proceeded until it correctly determined that there are no RAID controllers but emitted a number of confusing log messages before that.

With this change the check at the very beginning of RAID configuration for no RAID controllers is fixed by also checking for empty lists, so it exits at the beginning of RAID configuration without producing confusing log messages.

rpioso commented 3 years ago

@kamlesh6808 and @ajya, @gaelrehault and I chatted. This PR may be proposed against master, because it solves something and does not introduce a regression. It is very, very low risk.