I also get the "command failed" message when update-initramfs is run,
this is occuring in the cryptroot hook script (/usr/share/initramfs-
tools/hooks) when it tries to get info about the dependent devices.
The system does not have an encrypted root partition, but does use LVM
and this is possibly causing the issue.
Another possible bug in the cryptroot script is the regex for
determining major minor, this is only pulling out a single digit for the
minor (my system has a double digit minor) so the sed line should be as
follows (unless there is some reason to only want the first digit of the
minor)
majorminor=$( dmsetup deps $node | \
sed 's/[^:]*: *(\([0-9]*\), *\([0-9]*\).*/\1 \2/') ||
return
After altering this, it still fails to find the dependancy node
depnode=$( dmsetup info -c --noheadings -j $major -m $minor | cut -d ":"
-f 1 )
the major/minor is 8, 17 which is correctly determined, but this does not match
any devices
dmsetup deps Ubuntu-root
2 dependencies : (8, 17) (8, 5)
here is the full info list
Name Maj Min Stat Open Targ Event UUID
Ubuntu-swap_1 254 0 L--w 1 1 0
LVM-CdsWdMv2F6MlpbuEinFD5Qx4KgrkswbvLhjjjV1BSV1w1G5zxuaGjHMpjW6VrTX1
sdb1 254 3 L--w 1 1 0
Ubuntu-root 254 1 L--w 1 2 0
LVM-CdsWdMv2F6MlpbuEinFD5Qx4Kgrkswbv6cYV935HlILWF8lW8siiUN163sAfbKkF
sda5 254 2 L--w 2 1 0
sdc2 254 8 L--w 0 1 0
lvm2|Ubuntu|swap_1 254 5 L--w 0 1 0
sdc1 254 7 L--w 0 1 0
sda1 254 6 L--w 0 1 0
lvm2|Ubuntu|root 254 4 L--w 0 2 0
This shouldnt be a fatel issue (particularly since I dont have a cryptroot, but
I did have one of the installed kernels hang after initramfs had that error,
not sure if its related but I have some work to get done before I reboot and
see if my working kernel has died now :)
--
"Command failed" when running update-initramfs on Edgy
https://launchpad.net/bugs/61122
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs