]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut-functions.sh: avoid tokenizing ldconfig output with 'read'
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 23 Dec 2014 21:03:10 +0000 (22:03 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 8 Jan 2015 14:34:03 +0000 (15:34 +0100)
commitc59779cf9337bc0fc48c7a4d8437f7253f6822c3
tree6fe4926523053997a86bfdb65db1eb9198be793f
parent1dc360790d6cdaaa124b299e8d375e3670863312
dracut-functions.sh: avoid tokenizing ldconfig output with 'read'

The space does not separate the elements reliably, spaces can be
embedded in parenthesized expressions too:

  libgmpxx.so.4 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmpxx.so.4
  libgmp.so.10 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmp.so.10

This results in dracut creating '0x0000000004000000' and '=>'
directories in the initramfs image.
dracut-functions.sh