#852 PR merged: Solving Multipath cannot load due to libaio missing in ramdisk¶
Labels: bug
schabrolles opened issue at 2016-05-29 09:05:¶
When I boot on rear rescue (tested via grub menu) , I can't use multipath because libaio is missing in the ramdisk.
Here is my proposition for modification:
- Correct
LIBvariable name toLIBS - Changing
${PROGS[@]}to${LIBS[@]} - Using a local variable to find the directory where libaio is located
(can be different depending to the Linux distro and arch; for
example
/lib/powerpc64le-linux-gnu/libaio.so.1for ubuntu 16-04 ppc64le).
gdha commented at 2016-05-30 07:12:¶
@schabrolles See my comment in the pull request. And, thank you for finding this bug
schabrolles commented at 2016-05-30 08:13:¶
@gdha, you are right. I proposed the following:
- Using
sort -uto filter duplicate DIR - Create a
VARwith concatenateDIR/libaio(if several different PATH has to be added)
for libdir in $(ldconfig -p | awk '/libaio.so/ { print $NF }' | xargs -n1 dirname | sort -u); do
libaio2add="$libaio2add $libdir/libaio*"
done
LIBS=( "${LIBS[@]}" $libaio2add )
Your feedback are welcome.
[Export of Github issue for rear/rear.]