[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#669345: marked as done (/etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found)



Your message dated Wed, 06 Jun 2012 20:53:59 +0000
with message-id <E1ScNEt-0004lK-5Q@franck.debian.org>
and subject line Bug#669345: fixed in initramfs-tools 0.105
has caused the Debian Bug report #669345,
regarding /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found
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 owner@bugs.debian.org
immediately.)


-- 
669345: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669345
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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



--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.105

We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:

initramfs-tools_0.105.dsc
  to main/i/initramfs-tools/initramfs-tools_0.105.dsc
initramfs-tools_0.105.tar.gz
  to main/i/initramfs-tools/initramfs-tools_0.105.tar.gz
initramfs-tools_0.105_all.deb
  to main/i/initramfs-tools/initramfs-tools_0.105_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 669345@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
maximilian attems <maks@debian.org> (supplier of updated initramfs-tools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 06 Jun 2012 22:38:38 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.105
Distribution: unstable
Urgency: high
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@debian.org>
Description: 
 initramfs-tools - generic modular initramfs generator
Closes: 669345 676400
Changes: 
 initramfs-tools (0.105) unstable; urgency=high
 .
   [ Thomas Lange ]
   * [c52544d] initramfs-tools: kernel script check for update-initramfs
     executuable.  (Closes: #669345)
 .
   [ maximilian attems ]
   * [44b93e0] initramfs-tools: guard too kernel postrm script.
 .
   [ Josh Triplett ]
   * [95d8e7a] initramfs-tools: fix update-initramfs with modprobe options.
     (Closes: #676400)
Checksums-Sha1: 
 f3c282adfacf96b7ba4be3cf1ebffb6b961687e7 1052 initramfs-tools_0.105.dsc
 e9a9266c75cd1a7c6b6895e0e1bb3a94d06ab886 84530 initramfs-tools_0.105.tar.gz
 48f206b29e661984b76efe48f2514f18a638d371 91064 initramfs-tools_0.105_all.deb
Checksums-Sha256: 
 adb512cc46746f48bb6cb6f9a9beb518df91c9db860569df9596e76dc33d5640 1052 initramfs-tools_0.105.dsc
 c8fa7f98b7906416dfc3736c86cf8db02c6da3418b04eba70000073113dc5bc5 84530 initramfs-tools_0.105.tar.gz
 7b6b0071ca5189990c6e8f70b5301d4991ceea0a6c5fedac18ae8ed19a2b6e4a 91064 initramfs-tools_0.105_all.deb
Files: 
 e0c5c2784e2ff45bb251807d29a7201a 1052 utils optional initramfs-tools_0.105.dsc
 af3b2e7678eaf4a5b35ce7ad537580bb 84530 utils optional initramfs-tools_0.105.tar.gz
 90a285316eb24b9ecd2503090bc3ef47 91064 utils optional initramfs-tools_0.105_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk/PwI0ACgkQeW7Lc5tEHqjwZgCcDfs1wJygYXflrYygKsvONQQ7
hvIAn37X6zue3OTTtUA6phSuIWiD5InF
=fSLt
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: