]> git.ozlabs.org Git - petitboot/commit
discover: Update env vars at init and suppress LVM warnings
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 22 Aug 2017 01:41:09 +0000 (11:41 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 29 Aug 2017 04:11:09 +0000 (14:11 +1000)
commit6d2a87621073b00bb9d6c1fb1c7c8837d85d6bc3
tree445c696da1f994c7c5f1ce1a35690b17a6f05623
parentd1a05f13624f81902bcf8007db5d21459067f414
discover: Update env vars at init and suppress LVM warnings

Environment variables are not platform-specific so move
set_proxy_variables to device-handler and call it at handler init.

At the same time set LVM_SUPPRESS_FD_WARNINGS to ignore the "file
descriptor leaked" warnings when calling LVM-utilities, since we must
keep some file descriptors open in lib/process.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit 3132110c344c60bbe648b5e1b0473bdec101d111)
discover/device-handler.c
discover/platform-powerpc.c