[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]
Gelu N.
gelu at ilinc.ro
Tue Oct 30 10:20:48 UTC 2012
with MODULES=dep in /etc/initramfs-tools/conf.d/driver-policy:
# /bin/bash -x /usr/sbin/update-initramfs -v -u -k 3.2.0-32-generic
[...]
+ generate_initramfs
+ echo 'update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic'
update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic
+ OPTS=-o
+ '[' 1 = 1 ']'
+ OPTS='-v -o'
+ mkinitramfs -v -o /boot/initrd.img-3.2.0-32-generic.new 3.2.0-32-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
+ mkinitramfs_return=1
+ remove_initramfs_bak
+ '[' -z /boot/initrd.img-3.2.0-32-generic.dpkg-bak ']'
+ rm -f /boot/initrd.img-3.2.0-32-generic.dpkg-bak
+ verbose 'Removing /boot/initrd.img-3.2.0-32-generic.dpkg-bak'
+ '[' 1 = 1 ']'
+ printf 'Removing /boot/initrd.img-3.2.0-32-generic.dpkg-bak\n'
Removing /boot/initrd.img-3.2.0-32-generic.dpkg-bak
+ rm -f /boot/initrd.img-3.2.0-32-generic.new
+ '[' 1 = 2 ']'
+ echo 'update-initramfs: failed for /boot/initrd.img-3.2.0-32-generic with 1.'
update-initramfs: failed for /boot/initrd.img-3.2.0-32-generic with 1.
+ exit 1
Yes, the error is certainly coming from mkinitramfs, I knew it.
In attachment is the output of:
# /bin/bash -x mkinitramfs -o ~/tmp/initramfs-3.2.0-32-generic 2> ~/tmp/log.dep
I have no /dev/root (see lines 343-356 of log.dep):
[...]
++ awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}'
+ eval 'root=/dev/root
FSTYPE=ext4'
++ root=/dev/root
++ FSTYPE=ext4
+ '[' -z /dev/root ']'
+ '[' -z /dev/root ']'
+ '[' ext4 = ubifs ']'
+ '[' /dev/root = /dev/root ']'
++ blkid -o value -s UUID /dev/root
+ root=/dev/disk/by-uuid/
++ readlink -f /dev/disk/by-uuid/
+ root=/dev/disk/by-uuid
++ /usr/lib/klibc/bin/fstype /dev/disk/by-uuid
/dev/disk/by-uuid: Is a directory
[...]
** Attachment added: "log.dep"
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1062699/+attachment/3418470/+files/log.dep
--
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:
Incomplete
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