Comment 8 for bug 1062699

Revision history for this message
Gelu N. (gelu) wrote :

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
[...]