]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-install: install libs also from one dir above
authorHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 09:06:55 +0000 (11:06 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 09:06:55 +0000 (11:06 +0200)
commit791532b0ce833614910d1d405c0238938408bd6b
tree87c5b2b1e2baf063f7622811ad75ddae0a4546d2
parentad4502441632690954df4ccb05149eba3e4f7b2f
dracut-install: install libs also from one dir above

some HW has different flavors of basic libs

$ ldconfig -p|fgrep libc.so
libc.so.6 (libc6,64bit, hwcap: 0x0000001000000000, OS ABI: Linux 2.6.32) => /lib64/power6/libc.so.6
libc.so.6 (libc6,64bit, hwcap: 0x0000000000000200, OS ABI: Linux 2.6.32) => /lib64/power6x/libc.so.6
libc.so.6 (libc6,64bit, OS ABI: Linux 2.6.32) => /lib64/libc.so.6

because setting LD_HWCAP_MASK=0 does not work, we have to workaround
this.

$ LD_TRACE_LOADED_OBJECTS=1  LD_HWCAP_MASK=0 /lib64/ld64.so.1 /bin/sh | fgrep libc.so
libc.so.6 => /lib64/power6/libc.so.6 (0x000000804e260000)

Now we try to install the same library from one directory above the one
we installed also.
install/dracut-install.c
install/util.c
install/util.h