Your message dated Tue, 28 Apr 2020 04:25:35 +0100 with message-id <9736273d8ae29b55abac031bd44979203ef55743.camel@decadent.org.uk> and subject line Re: initramfs-tools-core: The hook-function copy_file should not canonicalize target directory if $3 is given has caused the Debian Bug report #953563, regarding initramfs-tools-core: The hook-function copy_file should not canonicalize target directory if $3 is given to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 953563: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953563 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: initramfs-tools-core: The hook-function copy_file should not canonicalize target directory if $3 is given
- From: Roman Gruber <roman.gruber@inf.unibe.ch>
- Date: Tue, 10 Mar 2020 18:08:38 +0100
- Message-id: <158386011890.7102.9082582820213138562.reportbug@localhost>
Package: initramfs-tools-core Version: 0.133+deb10u1 Severity: normal Dear Maintainer, * What led up to the situation? Implementing a shutdown initramfs with busybox support. In the script preparing the initramfs in /run/initramfs, I sourced /usr/share/initramfs-tools/hooks/zz- busybox (This is from package busybox). This script is called with set -e, therefore aborting in case of an error. In the last block of the script there are hard links created for all the utilities busybox does provide (ls, cp, ...). These are linked to /bin/busybox (inside the initramfs). But since the hook-function copy_file canonicalizes all paths (/bin/busybox becomes /usr/bin/busybox), this line fails (line 38 in /usr/share/initramfs- tools/hooks/zz-busybox). The copy process of the busybox binary is called "copy_exec /bin/busybox /bin/busybox". With a target path provided. * What exactly did you do (or not do) that was effective (or ineffective)? For me I copied zz-busybox and adjusted it for my purpose. But the problem lies in the hook function copy_file, not in the hook script of busybox. * What was the outcome of this action? The script failed to link basic utilities to busybox inside the initramfs. * What outcome did you expect instead? Correct links to busybox for all provided utilities. -- System Information: Debian Release: 10.3 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.0-0.bpo.3-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), LANGUAGE=de_CH.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 coreutils 8.30-3 ii cpio 2.12+dfsg-9 ii e2fsprogs 1.45.5-2~bpo10+1 ii klibc-utils 2.0.6-1 ii kmod 26-1 ii udev 244-3~bpo10+1 Versions of packages initramfs-tools-core recommends: ii busybox 1:1.30.1-4 ii pigz 2.4-1 Versions of packages initramfs-tools-core suggests: ii bash-completion 1:2.8-6 -- debconf-show failed
--- End Message ---
--- Begin Message ---
- To: 953563-done@bugs.debian.org
- Subject: Re: initramfs-tools-core: The hook-function copy_file should not canonicalize target directory if $3 is given
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Tue, 28 Apr 2020 04:25:35 +0100
- Message-id: <9736273d8ae29b55abac031bd44979203ef55743.camel@decadent.org.uk>
- In-reply-to: <158386011890.7102.9082582820213138562.reportbug@localhost>
- References: <158386011890.7102.9082582820213138562.reportbug@localhost>
There are good reasons for the current behaviour which you can find in the git commit log. On Tue, 10 Mar 2020 18:08:38 +0100 Roman Gruber <roman.gruber@inf.unibe.ch> wrote: > Package: initramfs-tools-core > Version: 0.133+deb10u1 > Severity: normal > > Dear Maintainer, > > * What led up to the situation? > > Implementing a shutdown initramfs with busybox support. In the script preparing > the initramfs in /run/initramfs, I sourced /usr/share/initramfs-tools/hooks/zz- > busybox (This is from package busybox). [...] You should not be invoking hooks that belong to other packages and you should definitely not report bugs when this doesn't have the desired result... Ben. -- Ben Hutchings Larkinson's Law: All laws are basically false.Attachment: signature.asc
Description: This is a digitally signed message part
--- End Message ---