Package: kernel-package Version: 8.119 Severity: important
The current /etc/kernel/*.d mechanism has several features which make it less than usable : 1) it will run all scripts in /etc/kernel/*.d, thus not allowing the existence of a per kernel-image version script. 2) furthermore run-partes doesn't allow files of the form foo-2.6.8 (no . allowed in the script name), can be worked around by changing . to _ though. 3) current scripts only seem to pass the version, and is thus not compatible with the postinst_hook format. To solve this, i suggest that kernel-package provided postinsts, in addition to run-parting the /etc/kernel/*.d directory, also run-parts the /etc/kernel/*.d/$version directory, for per-kernel provided postinst scripts, and a second arg be added to --args to conform to the postinst_hook invocation format. I would change this code snipplet : if (-d "/etc/kernel/postinst.d") { system ("run-parts", "-v", "--exit-on-error", "--arg=$version", "/etc/kernel/postinst.d") && die "Failed to process /etc/kernel/postinst.d"; } by : if (-d "/etc/kernel/postinst.d") { system ("run-parts", "-v", "--exit-on-error", "--arg=$version", "--arg=$realimageloc", "/etc/kernel/postinst.d") && die "Failed to process /etc/kernel/postinst.d"; } if (-d "/etc/kernel/postinst.d/$version") { system ("run-parts", "-v", "--exit-on-error", "--arg=$version", "--arg=$realimageloc", "/etc/kernel/postinst.d/$version") && die "Failed to process /etc/kernel/postinst.d/$version"; } In all three postinst, prerm and postrm scripts. I am not perl fluent, so i hope the above is indeed correct. If you could handle this quickly, i want to use this feature in the powerpc kernel packages, which need to be included in sarge, so it is a matter of some urgency. Thanks for your help about this, Sven Luther -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.6.8-powerpc Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages kernel-package depends on: ii dpkg 1.10.26 Package maintenance system for Deb ii dpkg-dev 1.10.26 Package building tools for Debian ii gcc [c-compiler] 4:3.3.5-1 The GNU C compiler ii gcc-2.95 [c-compiler] 1:2.95.4-22 The GNU C compiler ii gcc-3.3 [c-compiler] 1:3.3.5-6 The GNU C compiler ii make 3.80-9 The GNU version of the "make" util ii perl 5.8.4-5 Larry Wall's Practical Extraction -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]