Package: initramfs-tools Version: 0.101 Severity: minor Tags: patch
When I install dracut - which conflicts to initramfs-tools - initramfs-tools will be removed. But when doing a dpkg-reconfigure the script /etc/kernel/postinst.d/initramfs-tools is still executed, which lead to following error: /etc/kernel/postinst.d/initramfs-tools: 33: /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found Here's an easy patch for this: --- /etc/kernel/postinst.d/initramfs-tools 2011-03-30 11:56:12.000000000 +0200 +++ initramfs-tools.new 2012-04-19 10:49:28.677972624 +0200 @@ -3,6 +3,8 @@ version="$1" bootopt="" +[ -x /usr/sbin/update-initramfs ] || exit 0 + # passing the kernel version is required if [ -z "${version}" ]; then echo >&2 "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number" Log of the problem: wheezy[~]# aptitude install dracut The following NEW packages will be installed: dracut{b} 0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/133 kB of archives. After unpacking 442 kB will be used. The following packages have unmet dependencies: dracut : Conflicts: initramfs-tools but 0.101 is installed. The following actions will resolve these dependencies: Remove the following packages: 1) initramfs-tools Accept this solution? [Y/n/q/?] The following NEW packages will be installed: dracut The following packages will be REMOVED: initramfs-tools{a} 0 packages upgraded, 1 newly installed, 1 to remove and 1 not upgraded. Need to get 0 B/133 kB of archives. After unpacking 115 kB will be used. Do you want to continue? [Y/n/?] dpkg: initramfs-tools: dependency problems, but removing anyway as you requested: linux-image-3.2.0-2-amd64 depends on initramfs-tools (>= 0.99~) | linux-initramfs-tool; however: Package initramfs-tools is to be removed. Package linux-initramfs-tool is not installed. Package dracut which provides linux-initramfs-tool is not installed. Package initramfs-tools which provides linux-initramfs-tool is to be removed. linux-image-3.2.0-2-amd64 depends on initramfs-tools (>= 0.99~) | linux-initramfs-tool; however: Package initramfs-tools is to be removed. Package linux-initramfs-tool is not installed. Package dracut which provides linux-initramfs-tool is not installed. Package initramfs-tools which provides linux-initramfs-tool is to be removed. (Reading database ... 178235 files and directories currently installed.) Removing initramfs-tools ... Processing triggers for man-db ... Processing triggers for doc-base ... Processing 1 removed doc-base file... Registering documents with dhelp... Selecting previously unselected package dracut. (Reading database ... 178182 files and directories currently installed.) Unpacking dracut (from .../archives/dracut_018-2_all.deb) ... Processing triggers for man-db ... Setting up dracut (018-2) ... dracut: Generating /boot/initrd.img-3.2.0-2-amd64 wheezy[~]# dpkg-reconfigure linux-image-3.2.0-2-amd64 Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/dracut 3.2.0-2-amd64 /boot/vmlinuz-3.2.0-2-amd64 run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-2-amd64 /boot/vmlinuz-3.2.0-2-amd64 /etc/kernel/postinst.d/initramfs-tools: 33: /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 127 Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-2-amd64.postinst line 696, <STDIN> line 2. -- Package-specific info: -- initramfs sizes -- /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-3.2.0-2-amd64 root=UUID=a1abfdce-78e6-4c16-a5d6-3eef6f04f9ee ro quiet -- resume RESUME=UUID=34690ec1-2b81-4b16-8105-ac3f759f309c -- /proc/filesystems ext4 -- /etc/initramfs-tools/update-initramfs.conf update_initramfs=yes backup_initramfs=no -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (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 initramfs-tools depends on: ii cpio 2.11-7 ii klibc-utils 2.0~rc3-1 ii module-init-tools <none> ii udev 175-3.1 Versions of packages initramfs-tools recommends: ii busybox 1:1.19.3-5 Versions of packages initramfs-tools suggests: pn bash-completion <none> -- regards Thomas -- To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20367.54280.649032.516...@malzmuehle.informatik.uni-koeln.de