Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #58867 > unrolled thread

Bug#874523: /usr/share/initramfs-tools/hook-functions: copy_exec can copy shared library twice in case of usr-merge

Started byLaurent Bigonville <bigon@debian.org>
First post2017-09-06 23:20 +0200
Last post2017-09-06 23:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.kernel


Contents

  Bug#874523: /usr/share/initramfs-tools/hook-functions: copy_exec can copy shared library twice in case of usr-merge Laurent Bigonville <bigon@debian.org> - 2017-09-06 23:20 +0200

#58867 — Bug#874523: /usr/share/initramfs-tools/hook-functions: copy_exec can copy shared library twice in case of usr-merge

FromLaurent Bigonville <bigon@debian.org>
Date2017-09-06 23:20 +0200
SubjectBug#874523: /usr/share/initramfs-tools/hook-functions: copy_exec can copy shared library twice in case of usr-merge
Message-ID<umPTP-7jw-1@gated-at.bofh.it>
Package: initramfs-tools-core
Version: 0.130
Severity: normal
File: /usr/share/initramfs-tools/hook-functions
User: md@linux.it
Usertags: usrmerge

Hi,

The plymouth package is doing the following in its hook file:

for _LIBRARY in /lib/@DEB_HOST_MULTIARCH@/libnss_files*
do
        if [ -e "${_LIBRARY}" ]
        then
                copy_exec "${_LIBRARY}"
        fi
done

On machine with usr-merge, this results with the following in the
initramfs

lrwxrwxrwx   1 root     root           20 Sep  6 23:04 usr/lib/x86_64-linux-gnu/libnss_files.so.2 -> libnss_files-2.24.so
-rw-r--r--   1 root     root        47632 Aug 26 11:09 usr/lib/x86_64-linux-gnu/libnss_files-2.24.so
lrwxrwxrwx   1 root     root           20 Sep  6 23:04 lib/x86_64-linux-gnu/libnss_files.so.2 -> libnss_files-2.24.so
-rw-r--r--   1 root     root        47632 Aug 26 11:09 lib/x86_64-linux-gnu/libnss_files-2.24.so
lrwxrwxrwx   1 root     root           51 Sep  6 23:04 lib/x86_64-linux-gnu/libnss_files.so -> ../../usr/lib/x86_64-linux-gnu/libnss_files-2.24.so

Passing the verbose flag to update-initramfs shows:

Adding binary /lib/x86_64-linux-gnu/libnss_files-2.24.so
Adding binary-link /lib/x86_64-linux-gnu/libnss_files.so
Adding binary /usr/lib/x86_64-linux-gnu/libnss_files-2.24.so
Adding binary-link /lib/x86_64-linux-gnu/libnss_files.so.2

Regards,

Laurent Bigonville


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-rc5-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages initramfs-tools-core depends on:
ii  cpio         2.11+dfsg-6
ii  klibc-utils  2.0.4-9
ii  kmod         24-1
ii  udev         234-3

Versions of packages initramfs-tools-core recommends:
ii  busybox  1:1.22.0-19+b3

Versions of packages initramfs-tools-core suggests:
ii  bash-completion  1:2.1-4.3

-- no debconf information

[toc] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web