Your message dated Thu, 11 Feb 2016 04:30:08 +0000 with message-id <E1aTitM-0005iQ-B0@franck.debian.org> and subject line Bug#807527: fixed in initramfs-tools 0.123 has caused the Debian Bug report #807527, regarding initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration 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.) -- 807527: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807527 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: Please provide an API or best practices for custom initramfs hook configuration
- From: Guilhem Moulin <guilhem@guilhem.org>
- Date: Thu, 10 Dec 2015 02:52:11 +0100
- Message-id: <20151210015211.GA26003@localhost.localdomain>
Package: initramfs-tools Severity: normal X-Debug-CC: pkg-cryptsetup-devel@lists.alioth.debian.org Dear Maintainer, AFAIK there is no documentation for where users should set variables to configure an initramfs hook. There are a couple of workaround, all hacky and/or relying on undocumented properties of initramfs-tools(8): 1/ Setting said variable in initramfs.conf(5). (Since hook scripts are executed is sub-shells the variable need to be exported.) This is somewhat ugly since initramfs.conf(5) is the configuration file *for mkinitramfs*, not for the hook files. 2/ Using /usr/share/initramfs-tools/conf-hooks.d/$hook. This is an undocumented (short of an entry in the changelog) hack. Also unless that file is marked as a conffile (which violates the policy) user modifications are wiped upon upgrade. 3/ Make /usr/share/initramfs-tools/conf-hooks.d/$hook a symlink to /etc/initramfs-tools/conf-hooks.d/$hook. But again, this uses an undocumented property of mkinitramfs(8), and it might hijack your /etc/initramfs-tools namespace. There are packages that ship user configurable initramfs hooks (cryptsetup and dropbear-initramfs come to mind). These package need documented instructions for where to drop user configuration (/etc/initramfs-tools/conf-hooks.d/$package comes to mind). Alternatively, in a private discussion with Jonas Meurer of the Debian Cryptsetup Team (X-Debug-CC), I've been suggested that mkinitramfs(8) could instead source files in /etc/initramfs-tools/conf-hooks.d/ after sourcing /usr/share/initramfs-tools/conf-hooks.d/. This way package maintainers would ship variables with their default in /usr while users would write their custom configuration in /etc. -8<----------------------------------------------------->8- --- a/mkinitramfs +++ b/mkinitramfs @@ -87,6 +87,7 @@ echo "Warning: ${i} is a directory instead of file, ignoring." elif [ -e "${i}" ]; then . "${i}" + . [ ! -f "/etc/${i#/usr/share/}" ] || . "/etc/${i#/usr/share/}" fi done -8<----------------------------------------------------->8- Either way, IMHO initramfs-tools(8) should include some instructions for custom initramfs hook configuration. Cheers, -- Guilhem. PS. In fact I've implemented 3/ in dropbear-initramfs a couple of weeks ago. Oops…Attachment: signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
- To: 807527-close@bugs.debian.org
- Subject: Bug#807527: fixed in initramfs-tools 0.123
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Thu, 11 Feb 2016 04:30:08 +0000
- Message-id: <E1aTitM-0005iQ-B0@franck.debian.org>
Source: initramfs-tools Source-Version: 0.123 We believe that the bug you reported is fixed in the latest version of initramfs-tools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 807527@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Ben Hutchings <ben@decadent.org.uk> (supplier of updated initramfs-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 11 Feb 2016 02:13:23 +0000 Source: initramfs-tools Binary: initramfs-tools initramfs-tools-core Architecture: source Version: 0.123 Distribution: unstable Urgency: medium Maintainer: Debian kernel team <debian-kernel@lists.debian.org> Changed-By: Ben Hutchings <ben@decadent.org.uk> Description: initramfs-tools - generic modular initramfs generator (automation) initramfs-tools-core - generic modular initramfs generator (core tools) Closes: 512679 588770 639876 767471 768913 792910 804071 807527 809206 809740 810154 812404 813229 814345 Changes: initramfs-tools (0.123) unstable; urgency=medium . [ Ben Hutchings ] * [3084929] debian/control: Remove redundant dependency on klibc-utils|busybox * [913a861] debian/control: Recommend the right busybox packages for the target distribution * [d4febbd] Remove busybox hook in favour of busybox's own (Closes: #810154) * [b5303a1] Update TODO for removal of busybox hook * [6cc3d85] hook-functions: Include any modular RTC drivers in the initramfs * [ceff05e] hooks/fsck: Stop setting e2fsck broken_system_clock option (Closes: #804071) * [9c105f0] Assume blkid is always installed, and remove fallbacks * [aaba4cb] hooks/fsck: Use get_fstype rather than blkid to probe filesystem type * [a8ed874] hooks/fsck: Always use get_fstype to probe type of root filesystem (Closes: #767471) * [e798629] Pass filesystem type from /etc/fstab to fsck when checking /usr * [55e075c] hook-functions: Include drivers for all keyboards when MODULES=dep (Closes: #639876) * [704bfa5] scripts/functions: Explicitly load keyboard drivers only at break=top * [c5b54ae] scripts/functions: Use more sensible modprobe options at break=top * [39e90c8] scripts/functions: Load more USB host controllers drivers on break=top * [8c437f5] scripts/functions: Load HID drivers at break=top * [619f2ca] scripts/functions: Connect panic shell to normal tty device (Closes: #512679) * [8b8b28c] hook-functions: Clean up split between dep_add_modules and dep_add_modules_mount * [5f34b94] hook-functions: Include modules for resume partition when MODULES=dep (Closes: #588770) * [31ab487] hook-functions: Stop force-loading drivers found through sysfs when MODULES=dep (Closes: #792910) * [07f2c88] kernel/postinst.d: Make test for update-initramfs consistent with invocation (Closes: #768913) * [e5476bf] copy_file: Skip duplicating symlink if it points to the target file (Closes: #812404) * [d0f4d06] initramfs-tools: Include empty /etc/initramfs-tools/conf.d directory (Closes: #809206) * [245d584] initramfs-tools.8: Update list of variables exported to hook scripts * [941429d] initramfs-tools.8: Add a new section for the general description of scripts * [3ff5d57] initramfs-tools.8: Add brief description of configuration hooks and files (Closes: #807527) * [c17a21a] Remove klibc hook in favour of klibc's own * [ea7e02d] bash-completion: Simplify by using _get_comp_words_by_ref * [9e23444] init: Use "case" rather than loop to look for "quiet" parameter * [49e4a05] init: Remove fallback from devtmpfs to tmpfs * [ab91306] init: Take over handling of rootdelay parameter from udev boot script (Closes: #809740) * [56dfe39] bash-completion: Rename our completion script so that it works again * [ac6d31f] mkinitramfs: Delete or report temporary files on failure (Closes: #814345) * [c8c932d] Move initramfs.conf around in maintainer scripts to avoid it being 'obsolete' (Closes: #813229) * [138af73] hook-functions: Dereference links when looking up block device number . [ Andy Whitcroft ] * [7774fa3] Don't display "Loading, please wait..." message when 'quiet' is in /proc/cmdline. * [c4ea209] Mount /dev with the default tmpfs size rather than sourcing udev.conf. * [b418ad4] Sync the mount options for /run from /lib/init/fstab (LP: #1152744) * [c44df0c] init: Mount /dev with "nosuid". Thanks to Daniel (LP: #1450960) Checksums-Sha1: 04ba47b72545885859efbd5c82c4a16abe1d31b5 1811 initramfs-tools_0.123.dsc 24be51cd493c96640e34d80ae164c0f855826eb7 84040 initramfs-tools_0.123.tar.xz Checksums-Sha256: 4472617459414c9402b654d4e2adb20c175c79f371adf6489c87af1a7e6e3606 1811 initramfs-tools_0.123.dsc 84f57262b3208b14d36a7758b24380a4c27475e5e1ef69868aaba22f98ea5ac8 84040 initramfs-tools_0.123.tar.xz Files: 499f42df5ff1573b9abab071e728227f 1811 utils optional initramfs-tools_0.123.dsc e181fd51440cb4b767524bdc95b25745 84040 utils optional initramfs-tools_0.123.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIVAwUBVrvxnue/yOyVhhEJAQrgjBAAihP2c3a/kP8NeNKOG2Z4q09U0vZqNSRW YR+I4EdAngQVfYgv96Cn8BH9c4pz7Cs3/LSKxoOzPMl055wuD2adLr5tugeFhqSv +wqoV/IIX9xsqE41iWCHS2lmlY4QPUqwz9D5cTnQBeF8Gc6e0UM5q6Nt7m4NBKho oYdiCSN8EG7ggWO5gpopOsLSl7J+Af8m/41uiuV6cQDwTU9sHUjQjFVGZ+1Z4h54 MPYyNnnDI9aFlK8/gs7iyyiJgxwangmmVaV8dbEwI6UGcAq6Xi6QeuNqRTeF7iGS dhtfeYZ+KJv7RjTnKSFSXLx9EDXFlC32oW2t8B+yTfiEuX4+x4vyalEaUCAxMOEy I9DkeH9VdBE/+vW08heYo9LznopqmWRj1uTyni2rQyAttsir9OToSQcRzrMMXEsR mfpneVvIbF9VVaCnN1kgenaukfTg41iCX6r7rpPPJGPHCn2QddUI1YjCuMCp4p8B GC5FPTdQCTbBQNVDF8jD0M94zUxzn/0LnUSke2feze4WZ7EKn43uEFgr0Vy6uoLz L9cMd3aBcN4938s7BBvvjpPsDJqgXCoJwPIrefXDANKnKSPCIHoEkyNix80BhbK/ rF2yDTtjsVlTwrs1KiMWsv7NiQMQKy402T7ZsjozvQjW336OlBg8cHT3hML/YSE0 +bYohGrV3i4= =6L3y -----END PGP SIGNATURE-----
--- End Message ---