[Git-commits] [grml/live-boot-grml] 9d4ad8: Avoid overlay files of libnss* ending up in initramfs

Michael Prokop noreply at github.com
Fri Dec 4 13:16:26 CET 2020


  Branch: refs/heads/master
  Home:   https://github.com/grml/live-boot-grml
  Commit: 9d4ad8c0c81275ddf2f1bbfceb105eef78bc8bb7
      https://github.com/grml/live-boot-grml/commit/9d4ad8c0c81275ddf2f1bbfceb105eef78bc8bb7
  Author: Michael Prokop <mika at grml.org>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M backend/initramfs-tools/live.hook

  Log Message:
  -----------
  Avoid overlay files of libnss* ending up in initramfs

When the initramfs gets generated on a booted/running live system, then
we end up with unexpected files in the initramfs:

| root at grml ~ # lsinitramfs /boot/initrd.img-5.6.0-2-amd64 | grep squash
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_dns-2.30.so
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_dns.so.2
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_files-2.30.so
| usr/lib/live/mount/overlay/rw/var/tmp/mkinitramfs_pPceGY/usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_files.so.2
| usr/lib/live/mount/rootfs/grml64-full.squashfs
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_dns-2.30.so
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_dns.so.2
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_files-2.30.so
| usr/lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_files.so.2
| usr/lib/modules/5.6.0-2-amd64/kernel/fs/squashfs
| usr/lib/modules/5.6.0-2-amd64/kernel/fs/squashfs/squashfs.ko

This is caused by the find command, spotting files from
/lib/live/mount/rootfs/grml64-full.squashfs:

| root at grml ~ # find /lib /usr/lib -name 'libnss_dns.so.*' -o -name 'libnss_files.so.*'
| /lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_dns.so.2
| /lib/live/mount/rootfs/grml64-full.squashfs/lib/x86_64-linux-gnu/libnss_files.so.2
| /lib/x86_64-linux-gnu/libnss_dns.so.2
| /lib/x86_64-linux-gnu/libnss_files.so.2

Avoid this by filtering out files with `/lib/live`.




More information about the Git-commits mailing list