Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #51859
| From | Jonas Meurer <jonas@freesources.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#807527: [pkg-cryptsetup-devel] initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration |
| Date | 2015-12-23 23:20 +0100 |
| Message-ID | <qIZVf-6RM-7@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <qDYGu-7Sr-3@gated-at.bofh.it> <qE837-5I6-3@gated-at.bofh.it> <qEkdY-5iU-9@gated-at.bofh.it> <qEx1w-5JU-19@gated-at.bofh.it> <qGCzM-5sQ-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
[Multipart message — attachments visible in raw view] - view raw
Hi Ben, Am 17.12.2015 um 09:57 schrieb Jonas Meurer: > Am 11.12.2015 um 15:35 schrieb Guilhem Moulin: >> On Fri, 11 Dec 2015 at 00:54:03 +0000, Ben Hutchings wrote: > I guess that Guilhem meant "... something that's only documented in the > changelog". And I agree with him, that the purpose and limitations of > conf-hooks.d directory should be properly documented somewhere in the > mkinitramfs(8) manpage. Do you agree? >>> No, I am not going to add any more half-baked shell script parsing. >>> >>> Also, it doesn't make any sense to me, to put hook-specific >>> configuration into a namespace shared across all hooks. You can >>> always add a configuration file to your own package and source it in >>> your hook script. >> >> Using /etc/$package/initramfs adds a useless directory level for >> packages that only ship initramfs hook and script. The directory >> /etc/default is shared, also. > > I understand that Ben will not add the solution that we prefer and > suggest. But I still believe that some "standardized" way to make a > initramfs hook script configurable would be a benefit. > > Especially I don't like the idea to add yet another new config file for > the hook scripts. Thus I suggest the following: in cryptsetup, we use > the conf-hook.d/cryptroot file for both the main mkinitramfs and the > hook script configuration. Variables for the hook script will use a > special namespace (like CRYPTROOT_*) and will be exported. Moulin could > use the same scheme for dropbear (with DROPBEAR_* namespace). > > Ben, would you be ok with adding the /etc/initramfs-tools/conf-hooks.d > equivalent directory in addition to > /usr/share/initramfs-tools/conf-hooks.d? That way, at least custom > changes of the hook script config would be supported in a proper way. > > If we can agree on that, then the following changes would be needed in > initramfs-tools: > > 1/ add support for /etc/initramfs-tools/conf-hooks.d (already > implemented in the patch I submitted) > 2/ properly document purpose and limitations of conf-hooks.d directories Ben, what's your opinion on this suggestion? Is it an acceptable solution for you? Or do you prefer to not change anything regarding conf-hooks.d directory handing in mkinitramfs? Cheers jonas
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Guilhem Moulin <guilhem@guilhem.org> - 2015-12-10 03:00 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Guilhem Moulin <guilhem@guilhem.org> - 2015-12-10 03:40 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Jonas Meurer <jonas@freesources.org> - 2015-12-10 13:00 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Guilhem Moulin <guilhem@guilhem.org> - 2015-12-10 15:30 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Jonas Meurer <jonas@freesources.org> - 2015-12-10 16:20 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Ben Hutchings <ben@decadent.org.uk> - 2015-12-11 02:00 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Guilhem Moulin <guilhem@guilhem.org> - 2015-12-11 15:40 +0100
Bug#807527: initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Jonas Meurer <jonas@freesources.org> - 2015-12-17 10:10 +0100
Bug#807527: [pkg-cryptsetup-devel] initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Jonas Meurer <jonas@freesources.org> - 2015-12-23 23:20 +0100
Bug#807527: [pkg-cryptsetup-devel] initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration Jonas Meurer <jonas@freesources.org> - 2015-12-25 15:00 +0100
Processed: [PATCH initramfs-tools 3/3] initramfs-tools.8: Add brief description of configuration hooks and files owner@bugs.debian.org (Debian Bug Tracking System) - 2016-01-25 18:30 +0100
Bug#807527: marked as done (initramfs-tools: Please provide an API or best practices for custom initramfs hook configuration) owner@bugs.debian.org (Debian Bug Tracking System) - 2016-02-11 05:40 +0100
csiph-web