openhpi2 / Open-HPI

Open HPI is an open source implementation of the SA Forum's Hardware Platform Interface (HPI). HPI provides an abstracted interface to managing computer hardware, typically for chassis and rack based servers
Other
3 stars 1 forks source link

uid_map creation fails if directory is missing #2615

Open openhpi2 opened 8 years ago

openhpi2 commented 8 years ago

/var/lib/openhpi is installed by default on linux systems. That directory could be removed by user by accident/mistake. If uid_map creation fails, we need to check if that directory exists. If that directory does not exist and is needed then openhpid could exit with an error asking the user to reinstall the packages or create the directory before proceeding.

Reported by: dr_mohan