Your message dated Thu, 09 Apr 2009 18:32:26 -0500
with message-id <[email protected]>
and subject line These bugs have been fixed in version 12.001
has caused the Debian Bug report #511004,
regarding kernel-package: postrm script leaves stale files in
/var/lib/initramfs-tools/
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 [email protected]
immediately.)
--
511004: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511004
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kernel-package
Version: 11.015
Severity: important
Tags: patch
When purging an existing custom kernel image, created using kernel-package, via
aptitude (or any other package tool) stale files are left behind in
/var/lib/initramfs-tools/. This causes any subsequent invocations of
update-initramfs to generate error messages:
/boot/initrd.img-<version> does not exist. Cannot update.
When comparing the postrm scripts from a debian supplied kernel to those found
in /usr/share/kernel-package/pkg/image the scripts are NOT the same, even though
the headers at the top seem to indicate that they should be.
I haven't gone through the whole thing to see what other differences there may
be but this particular prolem is, I think, caused by following difference:
found at line 344 in the postrm script I found in
linux-image-2.6.26-1-amd64_2.6.26-12_amd64.deb)
# purge initramfs and related
if ($ARGV[0] !~ /upgrade/) {
if (-f $realimageloc . "initrd.img-$version") {
unlink $realimageloc . "initrd.img-$version";
}
if (-f $realimageloc . "initrd.img-$version.bak") {
unlink $realimageloc . "initrd.img-$version.bak";
}
if (-f "/var/lib/initramfs-tools/$version") {
unlink "/var/lib/initramfs-tools/$version";
}
# check and remove damaged and dangling symlinks
image_magic($kimage, $image_dest);
image_magic($kimage . ".old", $image_dest);
image_magic("initrd.img", $image_dest) if $initrd;
image_magic("initrd.img.old", $image_dest) if $initrd;
}
Contrast that with the lines from
/usr/share/kernel-package/pkg/image/postrm, starting at 348
# check and remove damaged and dangling symlinks
if ($ARGV[0] !~ /upgrade/) {
if (-f $realimageloc . "initrd.img-$version") {
unlink $realimageloc . "initrd.img-$version";
}
if (-f $realimageloc . "initrd.img-$version.bak") {
unlink $realimageloc . "initrd.img-$version.bak";
}
image_magic($kimage, $image_dest);
image_magic($kimage . ".old", $image_dest);
image_magic("initrd.img", $image_dest) if $initrd;
image_magic("initrd.img.old", $image_dest) if $initrd;
}
Note that the kernel-package version is missing:
if (-f "/var/lib/initramfs-tools/$version") {
unlink "/var/lib/initramfs-tools/$version";
}
Thanks for your work on this valuable package. It's much appreciated!
-jan
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (990, 'testing'), (110, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28+122708.1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages kernel-package depends on:
ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii debianutils 2.30 Miscellaneous utilities specific t
ii dpkg 1.14.23 Debian package management system
ii dpkg-dev 1.14.23 Debian package development tools
ii file 4.26-1 Determines file type using "magic"
ii gcc [c-compiler] 4:4.3.2-2 The GNU C compiler
ii gcc-4.1 [c-compiler 4.1.2-23 The GNU C compiler
ii gcc-4.3 [c-compiler 4.3.2-1 The GNU C compiler
ii gettext 0.17-4 GNU Internationalization utilities
ii make 3.81-5 The GNU version of the "make" util
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii perl 5.10.0-18 Larry Wall's Practical Extraction
ii po-debconf 1.0.15 manage translated Debconf template
ii util-linux 2.13.1.1-1 Miscellaneous system utilities
Versions of packages kernel-package recommends:
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii libc6-dev [libc-dev] 2.7-16 GNU C Library: Development Librari
Versions of packages kernel-package suggests:
pn docbook-utils <none> (no description available)
ii e2fsprogs 1.41.3-1 ext2/ext3/ext4 file system utiliti
ii initramfs-tools [linux-in 0.92n tools for generating an initramfs
pn libdb3-dev <none> (no description available)
ii libncurses5-dev [libncurs 5.7+20081213-1 developer's libraries and docs for
ii linux-source-2.6.26 [linu 2.6.26-12 Linux kernel source for version 2.
pn xmlto <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
Package: kernel-package
Version: 12.001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 07 Apr 2009 00:51:21 -0500
Source: kernel-package
Binary: kernel-package
Architecture: source all
Version: 12.001
Distribution: experimental
Urgency: low
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description:
kernel-package - A utility for building Linux kernel related Debian packages.
Closes: 511004 515138 515746 517345 518107 520356 521031 522728
Changes:
kernel-package (12.001) experimental; urgency=low
.
* This is a major change from the version shipped in Lenny.
* [123d487]: Get rid of the facility to patch kernel sources
.
The patch the kernel facility was adding complexity, and failing to
provide the flexibility required for a generic patching facility. It
has been removed, users need to patch the sources _before_ calling
make-kpkg.
* [ce61f77]: Remove special case code for official kernels
Allows for minimal recompiles after minor changes t the kernel; and we
can now recreate ./debian cheaply, so version mismatches are
mitigated.
* [7cc98b0]: Modified the maintainer scripts for the header package
* [ff0f1eb]: Modified the maintainer scripts for the doc package
* [f32d2ba]: Modified the maintainer scripts for the source package
.
These patches extends the package maintainer scripts to all four
actions, and creates the directories that the hook scripts can be
dropped in for site configuration of the actions that the package
takes.
.
The link manipulation that the header packages used to do in the
postinst has been removed, and is now provided as an example
script.
* [cdcd478]: Image postinst no longer runs a boot loader
Note that this was already the case for grub, one of the more popular
boot loaders. This allows the image package to be more flexible, since the
end user is no longer restricted to the actions encoded in the image
package. This is a fairly large change.
Bug fix: "mentions of grub on ia64", thanks to dann frazier. This was
a pretty minor bug, but is obsoletre since we no longer run boot
loaders, and thus have no need t warn people os a possible mismatch
with local policy. (Closes: #515138).
* [f8bc553]: The postinst no longer manipulates symlinks
.
Any symbolic link manipulation must now be done with hook scripts in
/etc/kernel/*.d directories (modern bootloaders don't need the links
anyway). Eample hook script demonstrate how a more flexible local
policy for symlinks can be easily put ihnto place, replacing the
fairly rigid policy previously implemented.
* [84364f0]: The image postinst no longer runs the initrd command
The postinst now just conveys to the hook scripts whether
this particular image was configured for an initial ram image or
not, using the environment variable INITRD. There are example
scripts provided that will perform the task. These scripts will work
for official kernel images as well.
Bug fix: "postrm script leaves stale files in
/var/lib/initramfs-tools/", thanks to Jan Muszynski. The proposed fix
was not good, since it would require kernel-package to muck around
with internal files for initramfs tools. This way, the user may add an
postrm.d script that uses the accepted interface to clean up.
(Closes: #511004).
Bug fix: "make-kpkg should use update-initramfs when
", thanks to
Arthur Marsh. Again, since the kernel does not call any initramfs
creators, be design, this bug is obsolete.
(Closes: #518107).
Bug fix: "Uses deprecated mkinitramfs-kpkg", thanks to Matt
Kraai. Yup. the functionality was deprecated with no coordination with
k-p. So now we don't call it at all. (Closes: #517345)
* [ecb2bd3]: make-kpkg removes and re-creates ./debian on every invocation
Bug fix: "Normal make functionality seems broken", thanks to David
Baron. Actually, normal make functionality is not to recreate targets
until there is need, and thus the stamp files are all that needed to
be removed. However, until now, we could not regenerate
./debian/changelog, so the support for minor changes without running a
clean was not feasible. (Closes:
#522728).
* [79b31b4]: Add a missing endif This is a typo fix
Bug fix: "make-kpkg fails with 2.6.29 on sparc", thanks to Max Berger
(Closes:
#521031).
* [3b1f6d9]: Problems building modules using cross-compiling option
Applied patch provided by Jose Calhariz.
Bug fix: "Problems building modules using cross-compiling option
--cross-compile=-", thanks to Jose Calhariz (Closes:
#520356).
* [debiandir:53af1ee]: Give up and depend on build-essential
This will prevent at least some surprises when people try to use
kernel-package.
Bug fix: "Needs to depend on libc6-dev", thanks to Christopher Carr
(Closes:
#515746).
* [debiandir:7be8542]: Updated newsworthy changes since last release.
Checksums-Sha1:
bf1a72a78c4cf9a60aec26f7fcc481e070c54910 900 kernel-package_12.001.dsc
dc8abab77eb0c7c8f56c78e492c97558395cb1be 567061 kernel-package_12.001.tar.gz
0d3109a214436e9c4e9056f1a6e817150080c580 513652 kernel-package_12.001_all.deb
Checksums-Sha256:
132e0b08759d70e98dd8930168ef871d2ff5243489650c383b90eae2edf34c70 900
kernel-package_12.001.dsc
3e1821bad08d3d7e5b6c35a12de50ddaca2d1a70f8a1b56067d4c5d5708fa5a7 567061
kernel-package_12.001.tar.gz
006d32d081150ce90f885682e7d16a7adb78cddd82a5bee7d81b766622ef16fd 513652
kernel-package_12.001_all.deb
Files:
bb3688df2297dff95a26db670c03b89d 900 misc optional kernel-package_12.001.dsc
9ace86b92494a4bc1bbddc87b06f205a 567061 misc optional
kernel-package_12.001.tar.gz
e9f0cbb763678ed1cb7e898e210d8ed4 513652 misc optional
kernel-package_12.001_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknbE80ACgkQIbrau78kQkw10gCgiw0oXqdMdh/pkoLu2yhplzLo
hOgAn0pJpNmkRjX72dVy5ISRackPRjfh
=UOdh
-----END PGP SIGNATURE-----
--
stab_val(stab)->str_nok = 1; /* what a wonderful hack! */ Larry Wall in
stab_val(stab)->stab.c from the perl source code
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--- End Message ---