Package: crossgrader
Version: 0.0.3+nmu3
Severity: important

Dear Maintainer,

crossgrader is a great and helpful tool. Many thanks for providing it!

But what I noticed when removing the package after usage, does makes me quiet 
unhappy. The initramfs-hook is not removed (or not removed properly) so that 
update-initramfs fails because of "ModuleNotFoundError: No module named 
'debian_crossgrader'".[2]
In one case this left a system unbootable because the initrd for a new kernel 
"delivered" by apticron was not built. When needrestart rebooted the machine it 
did not come up again.

So, coming to the point. As far as I see Debian Policy says "The package’s 
files are removed (except conffiles)." in 6.8 point 2. Please kindly check 
whether an increase of severity to 6 serious is appropriate.

My expectation is that the hook is implemented in a way so that it can be 
removed when removing or purging the package crossgrader. Maybe placing it 
inside of the existing file /usr/share/initramfs-tools/hook-functions[1] is the 
only way (currently), but then it needs to be removed from there when removing 
the package. Maybe there are other places, possibly /etc/initramfs-tools/hooks/?


[1]
# dpkg -S /usr/share/initramfs-tools/hook-functions
initramfs-tools-core: /usr/share/initramfs-tools/hook-functions

[2]
# apt purge arch-test crossgrader dpkg-dev libdpkg-perl make patch 
python3-appdirs python3-pkg-resources
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  arch-test* crossgrader* dpkg-dev* libdpkg-perl* make* patch* python3-appdirs* 
python3-pkg-resources*
0 upgraded, 0 newly installed, 8 to remove and 1 not upgraded.
After this operation, 7165 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 34876 files and directories currently installed.)
Removing crossgrader (0.0.3+nmu3) ...
crossgrader data folder did not exist.
Removing initramfs binary architecture check hook...
Backup file does not exist.
Hook could not be removed.
package_check data folder did not exist.
Removing arch-test (0.20-1) ...
Removing dpkg-dev (1.21.22) ...
Removing libdpkg-perl (1.21.22) ...
Removing make (4.3-4.1) ...
Removing patch (2.7.6-7) ...
Removing python3-appdirs (1.4.4-3) ...
Removing python3-pkg-resources (66.1.1-1+deb12u2) ...
Processing triggers for man-db (2.11.2-2) ...
(Reading database ... 34196 files and directories currently installed.)
Purging configuration files for dpkg-dev (1.21.22) ...

 # update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-6.1.0-39-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
crossgrader initramfs hook: (WARNING) initramfs binary /sbin/modprobe might not 
be in the correct architecture.
crossgrader initramfs hook: Ensure that it can be executed or crossgrade the 
package containing it, then update the initramfs again.
crossgrader initramfs hook: output of `file /sbin/modprobe`:
/sbin/modprobe: symbolic link to /bin/kmod
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
crossgrader initramfs hook: (WARNING) initramfs binary /sbin/rmmod might not be 
in the correct architecture.
crossgrader initramfs hook: Ensure that it can be executed or crossgrade the 
package containing it, then update the initramfs again.
crossgrader initramfs hook: output of `file /sbin/rmmod`:
/sbin/rmmod: symbolic link to /bin/kmod
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
crossgrader initramfs hook: (WARNING) initramfs binary /sbin/fsck might not be 
in the correct architecture.
crossgrader initramfs hook: Ensure that it can be executed or crossgrade the 
package containing it, then update the initramfs again.
crossgrader initramfs hook: output of `file /sbin/fsck`:
/sbin/fsck: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=7005e32dbe494ef54f1acbbcf23e208ac4607832, for GNU/Linux 3.2.0, 
stripped
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
crossgrader initramfs hook: (WARNING) initramfs binary /sbin/logsave might not 
be in the correct architecture.
crossgrader initramfs hook: Ensure that it can be executed or crossgrade the 
package containing it, then update the initramfs again.
crossgrader initramfs hook: output of `file /sbin/logsave`:
/sbin/logsave: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=c58916cc7658b48ff8ed802f59494aea67d74bdc, for GNU/Linux 3.2.0, 
stripped
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
crossgrader initramfs hook: (WARNING) initramfs binary /sbin/fsck.ext4 might 
not be in the correct architecture.
crossgrader initramfs hook: Ensure that it can be executed or crossgrade the 
package containing it, then update the initramfs again.
crossgrader initramfs hook: output of `file /sbin/fsck.ext4`:
/sbin/fsck.ext4: symbolic link to e2fsck
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'debian_crossgrader'
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.1.0-39-amd64 with 1.

 # apt install crossgrader
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  arch-test dpkg-dev libdpkg-perl make patch python3-appdirs 
python3-pkg-resources
Suggested packages:
  qemu-user-static debian-keyring gcc | c-compiler git bzr make-doc 
diffutils-doc python3-setuptools
Recommended packages:
  build-essential gcc | c-compiler fakeroot libalgorithm-merge-perl 
libfile-fcntllock-perl
The following NEW packages will be installed:
  arch-test crossgrader dpkg-dev libdpkg-perl make patch python3-appdirs 
python3-pkg-resources
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 2821 kB of archives.
After this operation, 7165 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://<mirror>/debian bookworm/main amd64 arch-test all 0.20-1 [12.4 kB]
Get:2 http://<mirror>/debian bookworm/main amd64 python3-appdirs all 1.4.4-3 
[13.0 kB]
Get:3 http://<mirror>/debian bookworm/main amd64 python3-pkg-resources all 
66.1.1-1+deb12u2 [297 kB]
Get:4 http://<mirror>/debian bookworm/main amd64 libdpkg-perl all 1.21.22 [603 
kB]
Get:5 http://<mirror>/debian bookworm/main amd64 patch amd64 2.7.6-7 [128 kB]
Get:6 http://<mirror>/debian bookworm/main amd64 make amd64 4.3-4.1 [396 kB]
Get:7 http://<mirror>/debian bookworm/main amd64 dpkg-dev all 1.21.22 [1353 kB]
Get:8 http://<mirror>/debian bookworm/main amd64 crossgrader all 0.0.3+nmu3 
[18.6 kB]
Fetched 2821 kB in 0s (14.9 MB/s)
Selecting previously unselected package arch-test.
(Reading database ... 34195 files and directories currently installed.)
Preparing to unpack .../0-arch-test_0.20-1_all.deb ...
Unpacking arch-test (0.20-1) ...
Selecting previously unselected package python3-appdirs.
Preparing to unpack .../1-python3-appdirs_1.4.4-3_all.deb ...
Unpacking python3-appdirs (1.4.4-3) ...
Selecting previously unselected package python3-pkg-resources.
Preparing to unpack .../2-python3-pkg-resources_66.1.1-1+deb12u2_all.deb ...
Unpacking python3-pkg-resources (66.1.1-1+deb12u2) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../3-libdpkg-perl_1.21.22_all.deb ...
Unpacking libdpkg-perl (1.21.22) ...
Selecting previously unselected package patch.
Preparing to unpack .../4-patch_2.7.6-7_amd64.deb ...
Unpacking patch (2.7.6-7) ...
Selecting previously unselected package make.
Preparing to unpack .../5-make_4.3-4.1_amd64.deb ...
Unpacking make (4.3-4.1) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../6-dpkg-dev_1.21.22_all.deb ...
Unpacking dpkg-dev (1.21.22) ...
Selecting previously unselected package crossgrader.
Preparing to unpack .../7-crossgrader_0.0.3+nmu3_all.deb ...
Unpacking crossgrader (0.0.3+nmu3) ...
Setting up python3-pkg-resources (66.1.1-1+deb12u2) ...
Setting up make (4.3-4.1) ...
Setting up patch (2.7.6-7) ...
Setting up libdpkg-perl (1.21.22) ...
Setting up arch-test (0.20-1) ...
Setting up python3-appdirs (1.4.4-3) ...
Setting up dpkg-dev (1.21.22) ...
Setting up crossgrader (0.0.3+nmu3) ...
Processing triggers for man-db (2.11.2-2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

 # update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-6.1.0-39-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip
update-initramfs: Generating /boot/initrd.img-6.1.0-35-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip

 #




-- System Information:
Debian Release: 12.12
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 
'oldstable-proposed-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-39-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages crossgrader depends on:
ii  arch-test              0.20-1
ii  dpkg-dev               1.21.22
ii  initramfs-tools        0.142+deb12u3
ii  python3                3.11.2-1+b1
ii  python3-appdirs        1.4.4-3
ii  python3-apt            2.6.0
ii  python3-pkg-resources  66.1.1-1+deb12u2

crossgrader recommends no packages.

Versions of packages crossgrader suggests:
pn  qemu-user-static  <none>

-- no debconf information

Reply via email to