Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #87014
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.debian.kernel |
| Subject | Bug#1104052: bookworm-pu: package initramfs-tools/0.142+deb12u2 |
| Date | 2025-04-25 04:30 +0200 |
| Message-ID | <KFgZb-g2W7-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: initramfs-tools@packages.debian.org
Control: affects -1 + src:initramfs-tools
User: release.debian.org@packages.debian.org
Usertags: pu
[ Reason ]
- Fix regressions to copy_file caused by the previous fixes.
- Fix missing reset drivers when using MODULES=dep to reduce the size
of the initramfs.
[ Impact ]
- Some initramfs-tools hooks stopped working with the previous update
(bugs #1082647, #1088959).
- Some systems may fail to boot with an initramfs built with
MODULES=dep (bug #1027458). The specific example there was a
Raspberry Pi 4 using USB storage.
[ Tests ]
There are autopkgtest test cases for mkinitramfs. A new test case has
been added to exercise all the corner cases of copy_file. All of
these passed in Salsa CI.
[ Risks ]
There could be yet another corner case in copy_file that broke, but
this seems unlikely.
[ Checklist ]
[X] *all* changes are documented in the d/changelog
[X] I reviewed all changes and I approve them
[X] attach debdiff against the package in (old)stable
[X] the issue is verified as fixed in unstable
[ Changes ]
commit 37a6e9ecef1a1b6d00a7eeb70bf88e580ef6eb4e
Author: Ben Hutchings <benh@debian.org>
Date: Thu Sep 26 18:01:04 2024 +0200
hook-functions: Expand documentation of copy_exec and copy_file
The documentation is currently a bit vague and doesn't mention
creation of directories or symlinks at all. Expand it to describe the
current behaviour.
Signed-off-by: Ben Hutchings <benh@debian.org>
(cherry picked from commit 140c572128a09324f6f907ca8b3583c5f422e210)
commit 31c50bc71eb2a23c8713bb036d5492554b610dab
Author: Ben Hutchings <benh@debian.org>
Date: Thu Sep 26 18:02:35 2024 +0200
hook-functions: Restore copy_file's handling of target ending in slash
Until recently, copy_file would treat a target ending in a slash as a
target directory. This was not intended behaviour, but had worked
since at least v0.98.8. It broke when I started using 'realpath' to
canonicalise the target, which stripped the slash.
Add a specific check for a trailing slash, and document that
behaviour.
Fixes: 984bdc7d727f ("hook-functions: copy_file: Canonicalise target filename")
Closes: #1082647
Signed-off-by: Ben Hutchings <benh@debian.org>
(cherry picked from commit 765db0268082dfaf0110441894abf3dafeff258b)
commit d6d188335c0f24c836542179677e7bbf21f0a9b3
Author: Ben Hutchings <benh@debian.org>
Date: Tue Oct 1 01:54:35 2024 +0200
hook-functions: Exclude usr-merge symlinks in copy_file
Currently if copy_file is invoked as:
copy_file binary /lib/package/command /bin/command
we will end up with:
src=/lib/package/command
target=/usr/bin/command
link_target=/usr/lib/package/command
and then we'll copy /lib/package/command to /usr/lib/package/command
and make /usr/bin/command a symlink to it. This is not what we used
to do and not the most sensible behaviour.
mkinitramfs already creates usr-merge symlinks in the initramfs so we
don't need to worry about creating duplicates when source files are
named via such symlinks on the host. So if the host system is
usr-merged, canonicalise source filenames that use the usr-merge
symlinks before doing symlink detection.
Fixes: b641a97705c1 ("hook_functions: Fix copy_file with source including a ...")
Signed-off-by: Ben Hutchings <benh@debian.org>
(cherry picked from commit d5c24307ad032932ccb42929ca739c9d76745be7)
Closes: #1088959
commit 38cf275d49b88ed84de6cd59a5bc94ec59f76555
Author: Ben Hutchings <benh@debian.org>
Date: Tue Oct 1 02:14:29 2024 +0200
autopkgtest: Add tests for copy_file function
As the copy_file is quite complex and has had a number of bugs
found (and introduced) recently, add an autopkgtest test case that
exercises most of its functionality and the specific cases where
bugs were reported.
Signed-off-by: Ben Hutchings <benh@debian.org>
(cherry picked from commit 6adf789818ca531d98e8709f7f6e9e27cc89a9ac)
[For bookworm, also create ${CONFDIR}/hooks in test-common, which was
done in upstream commit d75a58bab178.]
commit 065a03fc5fabdf3631b7e33e9ec737a0be4a2315
Author: Ben Hutchings <benh@debian.org>
Date: Sun Mar 2 16:05:01 2025 +0100
hook-functions: Add reset drivers when MODULES=dep
Reset drivers are currently included when MODULES=most but not when
MODULES=dep. Since they are outside the device model, match them by
module name not by driver class.
Closes: #1027458
Signed-off-by: Ben Hutchings <benh@debian.org>
(cherry picked from commit 34f9acde87eab2ee645f48a98f886fa1f6f150eb)
commit adb54d6c3b4912c6f48d379dd826bc7b5dd14838
Author: Ben Hutchings <benh@debian.org>
Date: Thu Apr 24 17:46:47 2025 +0200
Releasing version 0.142+deb12u2.
Signed-off-by: Ben Hutchings <benh@debian.org>
[ Other info ]
Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread
Bug#1104052: bookworm-pu: package initramfs-tools/0.142+deb12u2 Ben Hutchings <ben@decadent.org.uk> - 2025-04-25 04:30 +0200
csiph-web