[Bug 1062699] Re: package linux-image-3.2.0-31-generic 3.2.0-31.50 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 [/dev/disk/by-uuid: Is a directory , mkinitramfs: for root /dev/disk/by-uuid missing disk/by-uuid /sys/block/ entry]

Dave Gilbert ubuntu at treblig.org
Sat Nov 3 21:58:16 UTC 2012


Hmm thanks!
OK, so I don't have a /dev/root either; what seems to happen (see /usr/share/initramfs-tools/hook-functions) is that it
checks the output of

mount

to see where / is mounted, and it's finding that it says /dev/root - and
so that's what it uses /dev/disk/by-uuid to look at via blkid to see
where it really goes; if mount is saying /dev/root then mkinitramfs is
expecting there to be a /dev/root, and looking at the attched

df

output:

rootfs          36612928  22853144  11924828  66% /
/dev/root       36612928  22853144  11924828  66% /

It's obvious something is a bit weird.

So, time for some more questions:
   * What does   cat /proc/cmdline    show
   * Does this machine have any odd boot process?
   * Is there anything else odd you've seen, I see:

[    4.743386] init: Failed to create pty - disabling logging for job
[    4.743486] init: Temporary process spawn error: No such file or directory

in the logs - that's a bit odd.


** Changed in: initramfs-tools (Ubuntu)
       Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1062699

Title:
  package linux-image-3.2.0-31-generic 3.2.0-31.50 failed to
  install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools
  exited with return code 1 [/dev/disk/by-uuid: Is a directory ,
  mkinitramfs: for root /dev/disk/by-uuid missing disk/by-uuid
  /sys/block/ entry]

Status in “initramfs-tools” package in Ubuntu:
  Confirmed

Bug description:
  Selecting previously unselected package linux-image-3.2.0-31-generic.
  (Reading database ... 275104 files and directories currently installed.)
  Unpacking linux-image-3.2.0-31-generic (from .../linux-image-3.2.0-31-generic_3.2.0-31.50_amd64.deb) ...
  Done.
  Selecting previously unselected package linux-image-generic.
  Unpacking linux-image-generic (from .../linux-image-generic_3.2.0.31.34_amd64.deb) ...
  Selecting previously unselected package linux-image.
  Unpacking linux-image (from .../linux-image_3.2.0.31.34_amd64.deb) ...
  Setting up linux-image-3.2.0-31-generic (3.2.0-31.50) ...
  Running depmod.
  update-initramfs: deferring update (hook will be called later)
  Examining /etc/kernel/postinst.d.
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
  update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic
  /dev/disk/by-uuid: Is a directory
  mkinitramfs: for root /dev/disk/by-uuid missing disk/by-uuid /sys/block/ entry
  mkinitramfs: workaround is MODULES=most
  mkinitramfs: Error please report the bug
  update-initramfs: failed for /boot/initrd.img-3.2.0-31-generic with 1.
  run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
  Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-31-generic.postinst line 1010.
  dpkg: error processing linux-image-3.2.0-31-generic (--configure):
   subprocess installed post-installation script returned error exit status 2
  dpkg: dependency problems prevent configuration of linux-image-generic:
   linux-image-generic depends on linux-image-3.2.0-31-generic; however:
    Package linux-image-3.2.0-31-generic is not configured yet.
  dpkg: error processing linux-image-generic (--configure):
   dependency problems - leaving unconfigured
  dpkg: dependency problems prevent configuration of linux-image:
   linux-image depends on linux-image-generic (= 3.2.0.31.34); however:
    Package linux-image-generic is not configured yet.
  dpkg: error processing linux-image (--configure):
   dependency problems - leaving unconfigured
  No apport report written because the error message indicates its a followup error from a previous failure.
                            No apport report written because the error message indicates its a followup error from a previous failure.
                                                      Errors were encountered while processing:
   linux-image-3.2.0-31-generic
   linux-image-generic
   linux-image
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  A package failed to install.  Trying to recover:
  Setting up linux-image-3.2.0-31-generic (3.2.0-31.50) ...
  Running depmod.
  update-initramfs: deferring update (hook will be called later)
  The link /initrd.img is a dangling linkto /boot/initrd.img-3.2.0-31-generic
  Examining /etc/kernel/postinst.d.
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-31-generic /boot/vmlinuz-3.2.0-31-generic
  update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic
  /dev/disk/by-uuid: Is a directory
  mkinitramfs: for root /dev/disk/by-uuid missing disk/by-uuid /sys/block/ entry
  mkinitramfs: workaround is MODULES=most
  mkinitramfs: Error please report the bug
  update-initramfs: failed for /boot/initrd.img-3.2.0-31-generic with 1.
  run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
  Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-31-generic.postinst line 1010.
  dpkg: error processing linux-image-3.2.0-31-generic (--configure):
   subprocess installed post-installation script returned error exit status 2
  dpkg: dependency problems prevent configuration of linux-image-generic:
   linux-image-generic depends on linux-image-3.2.0-31-generic; however:
    Package linux-image-3.2.0-31-generic is not configured yet.
  dpkg: error processing linux-image-generic (--configure):
   dependency problems - leaving unconfigured
  dpkg: dependency problems prevent configuration of linux-image:
   linux-image depends on linux-image-generic (= 3.2.0.31.34); however:
    Package linux-image-generic is not configured yet.
  dpkg: error processing linux-image (--configure):
   dependency problems - leaving unconfigured
  Errors were encountered while processing:
   linux-image-3.2.0-31-generic
   linux-image-generic
   linux-image

  ProblemType: Package
  DistroRelease: Ubuntu 12.04
  Package: linux-image-3.2.0-31-generic 3.2.0-31.50
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
  Uname: Linux 3.2.0-26-generic x86_64
  NonfreeKernelModules: btrfs zlib_deflate libcrc32c ufs qnx4 hfsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs ext2 tcp_diag inet_diag xt_multiport iptable_filter nls_utf8 udf crc_itu_t ses enclosure usb_storage pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv rfcomm bnep bluetooth parport_pc ppdev binfmt_misc ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables joydev usbhid cdc_ether usbnet hid uas i7core_edac edac_core bnx2 ioatdma dca serio_raw shpchp tpm_tis megaraid_sas mac_hid lp parport
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: amd64
  Date: Sat Oct  6 09:10:36 2012
  ErrorMessage: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
  SourcePackage: initramfs-tools
  Title: package linux-image-3.2.0-31-generic 3.2.0-31.50 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
  UpgradeStatus: Upgraded to precise on 2012-04-30 (158 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1062699/+subscriptions




More information about the foundations-bugs mailing list